From 1c48f5f4472cfd3c9281f2ad083f325642be8895 Mon Sep 17 00:00:00 2001 From: Ole Mathias Heggem Date: Sun, 12 Feb 2023 01:20:50 +0100 Subject: [PATCH 1/2] fix: Change deployment strategy to RollingUpdate --- k8s/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 9a6e2ae..7aa368a 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -22,4 +22,4 @@ spec: - name: web containerPort: 80 strategy: - type: Recreate \ No newline at end of file + type: RollingUpdate \ No newline at end of file From 61c5b331011b5561b49a8377e66f9ab26f1cde81 Mon Sep 17 00:00:00 2001 From: Ole Mathias Heggem Date: Sun, 12 Feb 2023 01:26:20 +0100 Subject: [PATCH 2/2] fix: add livenessProbe to deployment --- k8s/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 7aa368a..b700b29 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -21,5 +21,9 @@ spec: ports: - name: web containerPort: 80 + livenessProbe: + httpGet: + path: / + port: web strategy: type: RollingUpdate \ No newline at end of file