https://pulumi.com logo
#kubernetes
Title
# kubernetes
a

adorable-action-51248

03/05/2021, 9:31 AM
Hi ! I am wondering what is the best way to setup K8S with GKE and control the subnet such that the cluster is “VPC-native” and has the maximum number of pods per node (110). Currently, I have a setup where i use
gcp.compute.Subnetwork
with empty
secondaryIpRanges: []
and then refer to that subnet in
gcp.container.Cluster
and use
ipAllocationPolicy
to specify the services and pods subnets. However, this setup breaks because GKE modifies the network’s
secondaryIpRanges
and on the next
pulumi up
pulumi tries to remove GKEs modifications. The fails because the subnetwork is already in use.
3 Views