Closed cbradgoog closed 2 years ago
Never mind. I see why the sample code was given the way it was. For a Standard, zonal deployment, the current sample yaml will indeed work as is. For the Autopilot mode, however, CLOUDSDK_COMPUTE_ZONE=us-central1-b needs to be changed to CLOUDSDK_COMPUTE_REGION=us-central1. Perhaps the doc itself needs to be updated instead to provide an additional step to make the change when Autopilot is used.
Ah, good catch, thank you. Someone updated the tutorial when Autopilot was released, but I suspect didn't retest the whole thing. I'll correct it.
I'm reopening this as this will be part of my fix. I'll merge this PR in sync with the update to the tutorial.
Change CLOUDSDK_COMPUTE_ZONE=us-central1-b to CLOUDSDK_COMPUTE_REGION=us-central1 to match the cluster creation command in the tutorial [0]:
Otherwise, Cloud Build would fail with this error:
0: https://cloud.google.com/kubernetes-engine/docs/tutorials/gitops-cloud-build