From 28fd85ef17a5e3c6e2dac395bd404a4723d19f6a Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Fri, 6 Mar 2020 13:58:27 +0000 Subject: [PATCH] [6.03.20] Pod Spin up with probes --- configuration/kubernetes/deployment.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/configuration/kubernetes/deployment.yaml b/configuration/kubernetes/deployment.yaml index 1834b6d..a0fe7a4 100644 --- a/configuration/kubernetes/deployment.yaml +++ b/configuration/kubernetes/deployment.yaml @@ -6,7 +6,7 @@ metadata: name: RESOURCE_NAME namespace: production spec: - replicas: 0 + replicas: 1 selector: matchLabels: app: RESOURCE_NAME @@ -64,6 +64,24 @@ spec: ports: - containerPort: 9090 name: RESOURCE_NAME + livenessProbe: + httpGet: + path: /health + port: 9090 + initialDelaySeconds: 30 + periodSeconds: 30 + timeoutSeconds: 1 + successThreshold: 1 + failureThreshold: 1 + readinessProbe: + httpGet: + port: 9090 + path: /readiness + initialDelaySeconds: 30 + periodSeconds: 5 + timeoutSeconds: 1 + successThreshold: 1 + failureThreshold: 1 imagePullPolicy: Always resources: requests: