From cff06e38cb8e7fc9b0193c802526fe929db2b384 Mon Sep 17 00:00:00 2001 From: TwiN Date: Wed, 25 May 2022 23:59:34 -0400 Subject: [PATCH] docs(kubernetes): Add probes to example --- .examples/kubernetes/gatus.yaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.examples/kubernetes/gatus.yaml b/.examples/kubernetes/gatus.yaml index 2c2550db..f5c22c14 100644 --- a/.examples/kubernetes/gatus.yaml +++ b/.examples/kubernetes/gatus.yaml @@ -54,10 +54,10 @@ spec: app: gatus template: metadata: - labels: - app: gatus name: gatus namespace: kube-system + labels: + app: gatus spec: serviceAccountName: gatus terminationGracePeriodSeconds: 5 @@ -76,6 +76,22 @@ spec: requests: cpu: 50m memory: 30M + readinessProbe: + httpGet: + path: /health + port: 8080 + initialDelaySeconds: 5 + periodSeconds: 10 + successThreshold: 1 + failureThreshold: 3 + livenessProbe: + httpGet: + path: /health + port: 8080 + initialDelaySeconds: 10 + periodSeconds: 10 + successThreshold: 1 + failureThreshold: 5 volumeMounts: - mountPath: /config name: gatus-config