A financial technology enterprise is establishing an automated deployment pipeline to provision a hybrid compute workload on Google Cloud. The solution requires private Google Kubernetes Engine (GKE) clusters for microservices and Managed Instance Groups (MIGs) for batch calculations, managed declaratively via Infrastructure as Code (IaC). To ensure secure master access, proper identity isolation, and resilient infrastructure state management during provisioning, which TWO actions should the Cloud Architect incorporate into the design?
- Configure Control Plane Authorized Networks on the private GKE cluster to restrict access to the cluster master endpoint to explicit, authorized internal administrative CIDR ranges.Answer
- Grant the deployment pipeline service account the Service Account User role (roles/iam.serviceAccountUser) on the specific workload service account assigned to the Compute Engine instances.Answer
- COmit Control Plane Authorized Networks configuration and rely exclusively on private node IP isolation to secure cluster management communications.
- DStore the primary Terraform state file in ephemeral local storage on the CI/CD runner to avoid network overhead and external state locking mechanisms.
- EAssign the primitive Owner role (roles/owner) to the Compute Engine node service account to ensure compute instances have sufficient permission to interact with all cloud resources.
Answer
The Cloud Architect must configure Control Plane Authorized Networks on the private GKE cluster to restrict control plane endpoint access to specified CIDR blocks, and grant the CI/CD deployment service account the Service Account User role on the dedicated workload service account.
Configuring Control Plane Authorized Networks restricts API server access to specified internal networks, preventing unauthorized access to the cluster master. Granting the Service Account User role on the target service account enables the deployment pipeline to launch Compute Engine instances under that identity while strictly adhering to least privilege principles.
Step-by-Step Solution
Key Concept
GKE Private Cluster Master Protection and IAM Service Account User Scoping