Kalle Richter
Kalle Richter

Reputation: 8728

How to find any version supported for GKE alpha cluster creation?

I'd like to create a Google Kubernetes Engine (GKE) alpha cluster and am facing the following problems:

I tried these commands with gcloud, gcloud beta and gcloud alpha. All gcloud alpha commands fail due to ERROR: (gcloud.alpha.container.clusters.create) ResponseError: code=404, message=Method not found. which is not helpful at all.

I created 1.16 Alpha clusters before using the version specified in the release notes.

Upvotes: 0

Views: 385

Answers (1)

DazWilkin
DazWilkin

Reputation: 40081

A good way to "sanity check" things like this is to use the Console and have it show you the equivalent CLI command. I tried to repro your issue and the command the Console produces this:

gcloud beta container clusters create ${CLUSTER} \
--project=${PROJECT} \
--region=${REGION} \
--release-channel="rapid" \

Where rapid==1.16.5-gke.2

Even though:

gcloud container get-server-config \
--project=${PROJECT} \
--region=${REGION}
Fetching server config for ...
defaultClusterVersion: 1.14.10-gke.17
defaultImageType: COS
validImageTypes:
- UBUNTU_CONTAINERD
- COS
- UBUNTU
- COS_CONTAINERD
validMasterVersions:
- 1.15.9-gke.9
- 1.15.9-gke.8
...
validNodeVersions:
- 1.15.9-gke.9
- 1.15.9-gke.8
...

So I think you need to use one of the --release-channel flag to get the version you're seeking.

NB I know you're probably aware that different regions|zones also (occasionally) have different GKE version availability.

Upvotes: 2

Related Questions