I am trying to set a new template for an GKE instance group as proposed by this tutorial, but getting the following error:
I copied an existing template, just modified a label on it, saved it and then run:
$ gcloud compute instance-groups managed set-instance-template gke-some-nodepool1-1436e076-grp --template gke-some-nodepool1-7bdaa55f-1 --zone=us-east4-b
ERROR: (gcloud.compute.instance-groups.managed.set-instance-template) Could not fetch resource:
- Invalid resource usage: 'Secondary ranges specified in InstanceTemplate must be the same as already set on Instance Group Manager. Expected: sre-inception-cluster-range Actual: '.
It turns out that the new (cloned) template does NOT have the Alias IP Ranges field set (as does the original template).
Seems like as bug on the template copying mechanism?