From b41799f801e123d52f94a0295195dc2d31681878 Mon Sep 17 00:00:00 2001 From: Carl Dominik Sander Date: Wed, 18 Aug 2021 16:09:06 +0200 Subject: [PATCH] reolved suggestions from @srgvg and @louislam --- kubernetes/uptime-kuma/deployment.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/kubernetes/uptime-kuma/deployment.yml b/kubernetes/uptime-kuma/deployment.yml index 9ea1bdff..8082d06b 100644 --- a/kubernetes/uptime-kuma/deployment.yml +++ b/kubernetes/uptime-kuma/deployment.yml @@ -8,12 +8,9 @@ spec: selector: matchLabels: component: uptime-kuma - replicas: 3 + replicas: 1 strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate + type: Recreate template: metadata: @@ -28,6 +25,17 @@ spec: volumeMounts: - mountPath: /app/data name: uptime-kuma-storage + livenessProbe: + exec: + command: + - node + - extra/healthcheck.js + readinessProbe: + httpGet: + path: / + port: 3001 + scheme: HTTP + volumes: - name: uptime-kuma-storage persistentVolumeClaim: