I am using Helm
Charts for deployments on google-kubernetes-engine
and using rolling-update in it.
Currently I am running 10 pods. When I make deployment using rolling-update
, I expect a new pod comes up and traffic is stopped from the old pod going down and then it is gracefully taken down. And so on for next pods.
But in my case when a new pod is created, old pod immediately goes down and I start getting Internal Server Error [500]
for requests being fulfilled by that pod.
How can I avoid this?
livenessProbe:
httpGet:
path: /health
port: 4000
initialDelaySeconds: 1
periodSeconds: 10
readinessProbe:
httpGet:
path: /health
port: 4000
initialDelaySeconds: 1
periodSeconds: 10