Open joaquindlz opened 5 years ago
Sorry, the issue is related to the cluster zone configuration. My cluster has a regional configuration, therefore, it runs in us-central1. Does this tool support regional cluster configuration?
Good to hear you found the root cause. I just had a look and with the current way we deal with the groups it would not work. For a regional cluster, GCloud create 1 node pool per zone which for us-central would be:
$ gcloud compute instance-groups list
NAME LOCATION SCOPE NETWORK MANAGED INSTANCES
gke-standard-cluster-1-default-pool-bd01c69c-grp us-central1-a zone default Yes 1
gke-standard-cluster-preemptible-pool-47ae2a9d-grp us-central1-a zone default Yes 1
gke-standard-cluster-1-default-pool-940826f8-grp us-central1-c zone default Yes 1
gke-standard-cluster-preemptible-pool-dcb56b72-grp us-central1-c zone default Yes 1
gke-standard-cluster-1-default-pool-4ce86136-grp us-central1-b zone default Yes 1
gke-standard-cluster-preemptible-pool-45a6ba9a-grp us-central1-b zone default Yes 1
There is 2 way we could tackle this problem: a. estafette-gke-node-pool-shifter change the logic to handle a regional cluster b. deploy one estafette-gke-node-pool-shifter instance per node pool pair, in the case above it would be 3
Good to hear you found the root cause. I just had a look and with the current way we deal with the groups it would not work. For a regional cluster, GCloud create 1 node pool per zone which for us-central would be:
$ gcloud compute instance-groups list NAME LOCATION SCOPE NETWORK MANAGED INSTANCES gke-standard-cluster-1-default-pool-bd01c69c-grp us-central1-a zone default Yes 1 gke-standard-cluster-preemptible-pool-47ae2a9d-grp us-central1-a zone default Yes 1 gke-standard-cluster-1-default-pool-940826f8-grp us-central1-c zone default Yes 1 gke-standard-cluster-preemptible-pool-dcb56b72-grp us-central1-c zone default Yes 1 gke-standard-cluster-1-default-pool-4ce86136-grp us-central1-b zone default Yes 1 gke-standard-cluster-preemptible-pool-45a6ba9a-grp us-central1-b zone default Yes 1
There is 2 way we could tackle this problem: a. estafette-gke-node-pool-shifter change the logic to handle a regional cluster b. deploy one estafette-gke-node-pool-shifter instance per node pool pair, in the case above it would be 3
Thank you for your reply @etiennetremel. Taking the example you mentioned, how would you deploy one estafette-gke-node-pool-shifter instance per node pool pair?
Unfortunately we still need to change the logic in the app, right now we assume the cluster make only use of 2 node pools. GetProjectDetailsFromNode
in the gcloud.go file would be the first place to look at. There is little chance that I can help in the coming few weeks so if you feel like looking at it, be my guess.
deploy one estafette-gke-node-pool-shifter instance per node pool pair, in the case above it would be 3
I tried doing that, but I ran into naming conflicts:
Error: release pool-shifter-default-pool failed: secrets "estafette-gke-node-pool-shifter" already exists
It doesn't look like there's a way to handle moving just 1 node for a regional cluster (node pool) - you can't control each zone independently.
However it seems the current code after PR #4 actually fixes this issue by using the correct API. Could you please rebuild and upload a new helm package? @etiennetremel @JorritSalverda
Hi there, is there any intention to support the regional clusters?
are regional clusters still not supported? @ademariag did you find any luck for regional clsuters? @orishoshan @zvictor @joaquindlz
Hi,
In GKE cluster version 1.10.6-gke.11 this tool doesn't work. Deployed with Helm.
Config:
Log: