You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support for multi-network feature is needed in module. enable_multi_networking argument is available in google_container_cluster resource
Description : (Optional) Whether multi-networking is enabled for this cluster.
According to gcloud cli the following configuration is available for node_pool
--additional-node-network network=NETWORK_NAME,subnetwork=SUBNET_NAME
--additional-pod-network subnetwork=subnet-dp,pod-ipv4-range=POD_IP_RANGE,max-pods-per-node=NUMBER_OF_PODS
Please note that every additional_pod_network_config can have its own max_pods_per_node that differs from node_pool.max_pods_per_node.
Additional information
From Documentation
To specify additional node-network and Pod-network interfaces, define the --additional-node-network and --additional-pod-network parameters multiple times as shown in the following example:
TL;DR
Support for multi-network feature is needed in module.
enable_multi_networking argument is available in google_container_cluster resource
Description : (Optional) Whether multi-networking is enabled for this cluster.
Terraform Resources
Detailed design
Multi-network feature is available in GKE as described here https://cloud.google.com/kubernetes-engine/docs/how-to/setup-multinetwork-support-for-pods.
According to gcloud cli the following configuration is available for node_pool
--additional-node-network network=NETWORK_NAME,subnetwork=SUBNET_NAME
--additional-pod-network subnetwork=subnet-dp,pod-ipv4-range=POD_IP_RANGE,max-pods-per-node=NUMBER_OF_PODS
Which is implemented in terraform provider here for resource container_node_pool https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_node_pool#additional_node_network_configs
So the possible design can be (under dedicated node_pool) as multiple blocks:
Please note that every additional_pod_network_config can have its own max_pods_per_node that differs from node_pool.max_pods_per_node.
Additional information
From Documentation
To specify additional node-network and Pod-network interfaces, define the --additional-node-network and --additional-pod-network parameters multiple times as shown in the following example:
No response
The text was updated successfully, but these errors were encountered: