GoogleCloudPlatform / continuous-deployment-on-kubernetes

Get up and running with Jenkins on Google Kubernetes Engine
Apache License 2.0
1.59k stars 891 forks source link

restarting pods throws error #85

Open ssinhas opened 7 years ago

ssinhas commented 7 years ago

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

viglesiasce commented 7 years ago

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.

ssinhas commented 7 years ago

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.

viglesiasce commented 7 years ago

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

viglesiasce commented 7 years ago

What version is your cluster?

ssinhas commented 7 years ago

1.6.4