From 47e359b23de6510cfacc05fd72a05f74ba304374 Mon Sep 17 00:00:00 2001 From: andyjk15 Date: Sat, 22 Feb 2020 09:36:10 +0000 Subject: [PATCH] [22.02.20] Probe config testing --- configuration/kubernetes/deployment.yaml | 42 ++++++++++++------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/configuration/kubernetes/deployment.yaml b/configuration/kubernetes/deployment.yaml index 4545a4d..0eef2d9 100644 --- a/configuration/kubernetes/deployment.yaml +++ b/configuration/kubernetes/deployment.yaml @@ -6,7 +6,7 @@ metadata: name: RESOURCE_NAME namespace: default spec: - replicas: 0 + replicas: 2 selector: matchLabels: app: RESOURCE_NAME @@ -54,26 +54,26 @@ spec: ports: - containerPort: 9090 name: RESOURCE_NAME -# livenessProbe: -# httpGet: -# path: /actuator/health -# port: 9090 -# scheme: HTTP -# initialDelaySeconds: 30 -# periodSeconds: 30 -# timeoutSeconds: 1 -# successThreshold: 1 -# failureThreshold: 3 -# readinessProbe: -# httpGet: -# port: 9090 -# path: /actuator/health -# scheme: HTTP -# initialDelaySeconds: 30 -# periodSeconds: 5 -# timeoutSeconds: 1 -# successThreshold: 1 -# failureThreshold: 10 + livenessProbe: + httpGet: + path: /actuator/health + port: 9090 + scheme: HTTP + initialDelaySeconds: 100 + periodSeconds: 30 + timeoutSeconds: 2 + successThreshold: 1 + failureThreshold: 3 + readinessProbe: + httpGet: + port: 9090 + path: /actuator/health + scheme: HTTP + initialDelaySeconds: 60 + periodSeconds: 5 + timeoutSeconds: 2 + successThreshold: 1 + failureThreshold: 10 imagePullPolicy: Always resources: requests: