Any chance someone can point me to an example usin...
# typescript
r
Any chance someone can point me to an example using the RAPID release channel to create a GKE cluster.. and the second example would be for a private GKE cluster.. 😉 thx for the help
I want to spin up a cluster with the newest available version in RAPID release channel: 1.18.6-gke.3503
When I manually set this version as minMasterVersion and nodeVersion with something like this:
Copy code
//config.ts file
export const masterVersion = "1.17.9-gke.1503";

//cluster.ts file
import * as config from "./config";
...
export const gkeCluster = new gcp.container.Cluster(clusterName, {
    initialNodeCount: config.clusterNodeCount,
    nodeVersion: config.masterVersion,
    minMasterVersion: config.masterVersion,
    releaseChannel: {channel: "RAPID" },
    masterAuth: { username: config.clusterUsername, password: config.clusterPassword },
    nodeConfig: {
        machineType: config.clusterNodeMachineType,
        imageType: config.imageType,
        oauthScopes: [
            "<https://www.googleapis.com/auth/compute>",
            "<https://www.googleapis.com/auth/devstorage.read_only>",
            "<https://www.googleapis.com/auth/logging.write>",
            "<https://www.googleapis.com/auth/monitoring>",
        ],
    },
});
I get the following error message:
error: googleapi: Error 400: Unable to update to releaseChannel RAPID. Master version 1.18.6-gke.3503 cannot be upgraded to releaseChannel RAPID default version 1.17.9-gke.1503: specified version is not newer than the current version., badRequest
g
I think you need to set
releaseChannel: {channel: "RAPID" }
. https://www.pulumi.com/docs/reference/pkg/gcp/container/cluster/#releasechannel_nodejs
Oh, nvm, I see you're doing that.
r
yeah … not sure, using the default version works 😞
g
Do you get that error on your initial create? or is that after you provisioned the cluster?
r
initial create
g
As best I can tell this is an issue at Google. I'm able to create a
1.17.9-gke.1503
cluster, but I get the same error as you do when trying
1.18.6-gke.3503
. From Pulumi's perspective there's no difference in behavior between the two different versions.
r
thx for following up… I will try to get some feedback from Google