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
When specifying a service_account_name, with create_service_account = True the created service account doesn't have the correct name, and the node pool is waiting for the service_account_name that you provided. This results in the inability to set a service_account_name.
Expected behavior
When specifying a service_account_name, the created service_account has the correct name, and is the one used by the node pool
Observed behavior
Node pool is using correct service_account_name, but the service account created is not the correct one.
Terraform Configuration
module"gke" {
source="terraform-google-modules/kubernetes-engine/google//modules/private-cluster"version="25.0.0"depends_on=[
google_project_iam_member.roles
]
name=var.cluster_nameproject_id=var.project_idnetwork=var.cluster_networksubnetwork=var.cluster_subnetworkip_range_pods=var.cluster_ip_range_podsip_range_services=var.cluster_ip_range_servicesnetwork_project_id=var.cluster_network_project_idregion=var.default_regionremove_default_node_pool=trueenable_private_nodes=trueenable_private_endpoint=truemaster_ipv4_cidr_block="172.16.255.240/28"master_authorized_networks=[{ cidr_block ="172.16.255.240/28", display_name ="placeholder to not have a public IP" }]
service_account="gke-${var.cluster_name}@${var.project_id}.iam.gserviceaccount.com"
}
TL;DR
When specifying a service_account_name, with create_service_account = True the created service account doesn't have the correct name, and the node pool is waiting for the service_account_name that you provided. This results in the inability to set a service_account_name.
Expected behavior
When specifying a service_account_name, the created service_account has the correct name, and is the one used by the node pool
Observed behavior
Node pool is using correct service_account_name, but the service account created is not the correct one.
Terraform Configuration
Terraform Version
Additional information
Service account name defined here is not using the correct name : https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/blob/master/sa.tf#L42
The text was updated successfully, but these errors were encountered: