From e2e777190f41b5341cee2cdaa29718cdedf159b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Wed, 20 Apr 2022 17:11:11 +0000 Subject: [PATCH] Add liveness probe and loadbalancer --- testing/deployment.yml | 6 ++++++ testing/svc.yml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/testing/deployment.yml b/testing/deployment.yml index 19c6826..766927f 100644 --- a/testing/deployment.yml +++ b/testing/deployment.yml @@ -24,3 +24,9 @@ spec: name: minipaste-server ports: - containerPort: 8080 + livenessProbe: + failureThreshold: 2 + periodSeconds: 15 + httpGet: + path: / + port: 8080 diff --git a/testing/svc.yml b/testing/svc.yml index dd89cd4..3e83fe7 100644 --- a/testing/svc.yml +++ b/testing/svc.yml @@ -7,4 +7,5 @@ spec: - port: 80 targetPort: 8080 selector: - app: minipaste-server \ No newline at end of file + app: minipaste-server + type: LoadBalancer \ No newline at end of file