[6.03.20] Pod Spin up with probes
This commit is contained in:
parent
ec806f644c
commit
28fd85ef17
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user