[6.03.20] Pod Spin up with probes

This commit is contained in:
andrewso 2020-03-06 13:58:27 +00:00
parent ec806f644c
commit 28fd85ef17

View File

@ -6,7 +6,7 @@ metadata:
name: RESOURCE_NAME name: RESOURCE_NAME
namespace: production namespace: production
spec: spec:
replicas: 0 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: RESOURCE_NAME app: RESOURCE_NAME
@ -64,6 +64,24 @@ spec:
ports: ports:
- containerPort: 9090 - containerPort: 9090
name: RESOURCE_NAME 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 imagePullPolicy: Always
resources: resources:
requests: requests: