gke_bootstrap_script returns the error 'message=Network "default" requires specifying a subnetwork'
Summary
When running the script with default values, the script requires passing the flag --subnetwork
along with --network
.
Steps to reproduce
Run the script, example CLUSTER_NAME=rhassanein PROJECT=support-testing-168620 ./gke_bootstrap_script.sh up
.
Current behavior
Error message:
ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=Network "default" requires specifying a subnetwork.
Expected behavior
No error with output similar to:
Creating cluster rhassanein in us-central1-b... Cluster is being health-checked (master is healthy)...done.
Versions
- Chart: (hash
275234bc26a1705fa11dc060eb60a7029d6e2279
) - Platform:
- Cloud: (GKE)
- Kubernetes: (
kubectl version
)- Client:
version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.1", GitCommit:"c4d752765b3bbac2237bf87cf0b1c2e307844666", GitTreeState:"clean", BuildDate:"2020-12-23T02:22:53Z", GoVersion:"go1.15.6", Compiler:"gc", Platform:"linux/amd64"}
- Server:
Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.15-gke.4901", GitCommit:"7ed5ddc0e67cb68296994f0b754cec45450d6a64", GitTreeState:"clean", BuildDate:"2020-11-06T18:22:22Z", GoVersion:"go1.13.15b4", Compiler:"gc", Platform:"linux/amd64"}
- Client:
- Helm: (
helm version
)- Client:
&version.Version{SemVer:"v2.16.10", GitCommit:"bceca24a91639f045f22ab0f41e47589a932cf5e", GitTreeState:"clean"}
- Server:
&version.Version{SemVer:"v2.16.10", GitCommit:"bceca24a91639f045f22ab0f41e47589a932cf5e", GitTreeState:"clean"}
- Client:
Edited by Rehab