An enterprise software team is provisioning a private Google Kubernetes Engine (GKE) cluster in Google Cloud to process internal HR data. The cluster control plane must be isolated from public network access, allowing administrative gcloud and kubectl commands strictly from designated on-premise management subnet ranges via Cloud VPN. Additionally, automated deployment pipelines provisioning the node pools must adhere to the principle of least privilege when configuring service account bindings. Which TWO actions should you take to provision this cluster environment securely?
- Enable Control Plane Authorized Networks on the GKE cluster and specify the designated on-premise CIDR blocks.Answer
- BDisable Control Plane Authorized Networks to allow IAM roles to govern all network-level access automatically without IP restrictions.
- Grant the deployment pipeline identity the Service Account User role (roles/iam.serviceAccountUser) on the custom node service account.Answer
- DAssign the Service Account Admin role (roles/iam.serviceAccountAdmin) to the deployment pipeline identity to attach service accounts to nodes.
- EAssign the primitive Editor role (roles/editor) to the custom GKE node service account to allow automatic API endpoint discovery.
Answer
To configure a private GKE cluster isolated to corporate management subnets under least privilege, you must enable Control Plane Authorized Networks with designated on-premise CIDR blocks and grant the deployment pipeline identity the Service Account User role on the custom node service account.
Enabling Control Plane Authorized Networks restricts API server endpoint access to explicit CIDR blocks (such as corporate subnets reaching Google Cloud over VPN). For identity management, granting the Service Account User role to the provisioning pipeline satisfies least privilege by permitting the pipeline to assign the custom service account to GKE nodes without giving administrative authority to modify IAM service accounts.
Step-by-Step Solution
Key Concept
Private GKE Cluster Endpoint Security and IAM Least Privilege Service Account Delegation