liveness and readiness probes
This commit is contained in:
@@ -19,6 +19,28 @@ spec:
|
|||||||
image: git.fpmoz.sum.ba/mihaeljanjic/moj-servis:2.0
|
image: git.fpmoz.sum.ba/mihaeljanjic/moj-servis:2.0
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: 8000
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 15
|
||||||
|
timeoutSeconds: 3
|
||||||
|
failureThreshold: 3
|
||||||
|
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: 8000
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 2
|
||||||
|
failureThreshold: 2
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests: { memory: "64Mi", cpu: "50m" }
|
||||||
|
limits: { memory: "128Mi", cpu: "200m" }
|
||||||
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: moj-servis-config
|
name: moj-servis-config
|
||||||
|
|||||||
Reference in New Issue
Block a user