GKE interview question
How do you give a GKE workload access to a Cloud SQL database securely?
How you'd do it
Summary
Use Workload Identity for the Pod, grant its identity roles/cloudsql.client (and IAM database authentication if
possible), and connect through the Cloud SQL Auth Proxy sidecar or a language connector over private IP. No
passwords in Secrets, no public IPs.
Keep reading with a membership
The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.
More GKE questions
- GKE Autopilot or Standard: what's the difference, and how do you choose?
- How does Workload Identity Federation for GKE work?
- How do you upgrade GKE clusters safely?
- Explain GKE networking: VPC-native clusters, Dataplane V2 and private clusters.
- Pods on GKE can't pull images from Artifact Registry. How do you troubleshoot it?
- How do you control costs on GKE?
- How do you secure a GKE cluster?
- A GKE workload is evicted repeatedly on Autopilot. What could be happening?