continuous-deployment-on-kubernetes icon indicating copy to clipboard operation
continuous-deployment-on-kubernetes copied to clipboard

restarting pods throws error

Open ssinhas opened this issue 8 years ago • 5 comments

delete and creating deployment doesn't work.. Throwing error

Failed to attach volume "jenkins-home" on node "gke-demo-default-pool-f7ab4024-6ttg" with: googleapi: Error 400: The disk resource 'projects/dev-lm/zones/us-central1-b/disks/jenkins-home' is already being used by gke-demo-default-pool-f7ab4024-npdg

ssinhas avatar Jun 30 '17 19:06 ssinhas

Were you able to get the pod to restart? It can take a couple of minutes for volumes to detach from the old node and reattach to a new one.

viglesiasce avatar Jul 17 '17 22:07 viglesiasce

yup I figure that one out...Question still remains how do you automate this? As it is part of Replication Controller, if pods dies RC recreate a pods and again it dies.

It goes in loop.

ssinhas avatar Jul 17 '17 22:07 ssinhas

This is automated, it should not loop. If it is looping forever then there is a bug.

viglesiasce avatar Jul 17 '17 22:07 viglesiasce

What version is your cluster?

viglesiasce avatar Jul 17 '17 22:07 viglesiasce

1.6.4

ssinhas avatar Jul 17 '17 22:07 ssinhas