GoogleCloudPlatform / gke-network-policy-demo

This guide demonstrates how to improve the security of your Kubernetes Engine by applying fine-grained restrictions to network communication. You will provision a simple HTTP server and two client pods in a Kubernetes Engine cluster, then use a Network Policy restrict connections from client pods.
Apache License 2.0
99 stars 85 forks source link

Gke cluster not creating with existing subnetwork #21

Closed sarab321 closed 5 years ago

sarab321 commented 5 years ago

I am using the below network fields while creating gkecluster but it is throwing error that "Create cluster cannot be created with existing subnetwork"

network            = "${google_compute_network.vpc.self_link}"
subnetwork         = "${google_compute_subnetwork.gkesubnet.self_link}"

How to attach existing subnetwork while creating gkecluster

thefirstofthe300 commented 5 years ago

Looks like this same question was asked on StackOverflow

I'm going to go ahead and close the issue since the code posted to Stackoverflow is not using this module.