https://pulumi.com logo
#typescript
Title
# typescript
r

red-area-47037

09/09/2020, 9:00 PM
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

gentle-diamond-70147

09/09/2020, 9:14 PM
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

red-area-47037

09/09/2020, 9:15 PM
yeah … not sure, using the default version works 😞
g

gentle-diamond-70147

09/09/2020, 9:15 PM
Do you get that error on your initial create? or is that after you provisioned the cluster?
r

red-area-47037

09/09/2020, 9:18 PM
initial create
g

gentle-diamond-70147

09/09/2020, 10:35 PM
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

red-area-47037

09/10/2020, 2:53 PM
thx for following up… I will try to get some feedback from Google