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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.
Description
Creating a VPC network peering connection between the cluster VPC and the control plane VPC is not allowed in some enterprise uses cases. An alternative solution is connect the cluster VPC and control plane VPC using a Private Service Connect (PSC) endpoint.
The Terraform resource, google_container_cluster, should allow creating a private cluster without specifying the master_ipv4_cidr_block. This use case is supported with the gcloud container clusters create command.
module.kubernetes-engine.google_container_cluster.cluster: Creating...
╷
│ Error: master_ipv4_cidr_block must be setif enable_private_nodes is true
New or Affected Resource(s)
google_container_cluster
Potential Terraform Configuration
Add support for creating a private cluster (standard) that utilizes Private Service Connect endpoints to connect the cluster VPC with the control plane VPC.
@ncapps@rileykarson Can I get some clarification on this PR ? Are you trying to create a GKE cluster with private nodes which operates with PSC instead of VPC Peering? Is that possible today? My understanding was that its only supported for public GKE clusters and GKE cluster with private nodes was not supported yet
Hi @sanmaym, Yes - we are creating GKE clusters with private nodes that use PSC. We have been using this configuration for over a year now. We needed to provision and manage the clusters using gcloud until this change was applied to the Google Terraform provider.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Description
Creating a VPC network peering connection between the cluster VPC and the control plane VPC is not allowed in some enterprise uses cases. An alternative solution is connect the cluster VPC and control plane VPC using a Private Service Connect (PSC) endpoint.
The Terraform resource,
google_container_cluster
, should allow creating a private cluster without specifying themaster_ipv4_cidr_block
. This use case is supported with thegcloud container clusters create
command.Using Terraraform, we currently cannot create a private cluster without providing a value for
master_ipv4_cidr_block
.This configuration results in a Terraform build phase error.
Error message:
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: