https://pulumi.com logo
#general
Title
# general
p

plain-businessperson-30883

04/23/2019, 6:15 PM
Hello. Has anyone ever created a Private GKE Cluster? I'm looking for the the
privateCluster
option (as described in https://pulumi.io/reference/pkg/nodejs/@pulumi/gcp/container/#Cluster-privateCluster) but I can't find it in the
ClusterArgs
(https://github.com/pulumi/pulumi-gcp/blob/master/sdk/nodejs/container/cluster.ts), despite seeing it in the
GetClusterResult
interface (https://github.com/pulumi/pulumi-gcp/blob/master/sdk/nodejs/container/getCluster.ts#L105). If I set only the
privateClusterOptions
I get the following error:
Copy code
gcp:container:Cluster (my-cluster):
    error: Plan apply failed: googleapi: Error 400: Private cluster must be enabled if private endpoint is enabled., badRequest
Anyone ever had this? Am I missing something? Thanks in advance.
o

orange-tailor-85423

04/23/2019, 9:27 PM
yes! We only use private clusters
let me get you some redacted code
p

plain-businessperson-30883

04/23/2019, 9:30 PM
I think I just found the issues. The private cluster requires a bunch of other options to be enabled together. Funny you replied now, I was coming here to say this hahaha
I'll paste here the stuff I found for future reference if someone needs. I think I'm about to finish it 🙂
o

orange-tailor-85423

04/23/2019, 9:31 PM
cool!
we can compare notes if needed