☁️ Cloud

GKE Autopilot

GKE Autopilot Mode

A fully managed Kubernetes operation mode. Automates node management, with per-Pod billing.

📖 Detailed Explanation

GKE Autopilot is a fully managed Kubernetes operating mode that Google released in 2021. Unlike the traditional GKE Standard, Google automatically handles node provisioning, scaling, security patches, and OS upgrades. Users only need to deploy Pods, and there is no need to manage nodes directly or connect to them via SSH.

Autopilot's key differentiator is Pod-level billing. In Standard mode, you pay for the entire cost of the node VMs, but with Autopilot, you are billed only for the CPU/memory that Pods actually request. Because there is no cost for idle node resources, cost savings of up to 85% are possible depending on the workload.

Autopilot applies Google's security best practices by default. Workload Identity is required, Shielded GKE nodes and Container-Optimized OS only are used, and restrictions on privileged containers are configured automatically. It complies with the CIS Kubernetes Benchmark by default, reducing the burden of security audits.

In practice, Autopilot is suitable for organizations with a small DevOps team or little Kubernetes operations experience, or when developers want to focus on applications rather than infrastructure. However, there are constraints compared to Standard, such as DaemonSet limitations, some GPU restrictions, and no SSH access, so you should check your requirements first.

💻 Code Example

# GKE Autopilot 클러스터 생성
gcloud container clusters create-auto my-autopilot \
  --region=asia-northeast3 \
  --release-channel=regular \
  --network=default \
  --subnetwork=default

# 클러스터 인증 정보 가져오기
gcloud container clusters get-credentials my-autopilot \
  --region=asia-northeast3

# Autopilot 클러스터 정보 확인
gcloud container clusters describe my-autopilot \
  --region=asia-northeast3 \
  --format="value(autopilot.enabled)"

# Private Autopilot 클러스터 생성
gcloud container clusters create-auto my-private-autopilot \
  --region=asia-northeast3 \
  --release-channel=regular \
  --enable-private-nodes \
  --enable-master-authorized-networks \
  --master-authorized-networks=10.0.0.0/8

🗣️ Say It Like This in Practice

💬 In a Meeting
"Once we switch to GKE Autopilot, there's no need for node operations, so the DevOps team can focus on more valuable work. Since billing is per Pod, costs automatically go down when workloads decrease at night or on weekends. Google's security best practices are applied by default, so preparing for compliance is also easier."
💬 In an Interview
"We adopted Autopilot at a startup and ran Kubernetes with a development team of just 3 people. Without the burden of node management, we could focus on product development, and we cut monthly costs by 40% compared to Standard. However, because of the DaemonSet constraints, we switched log collection to Cloud Logging."
💬 In Technology Selection Discussions
"Choosing between Standard and Autopilot depends on the workload characteristics. If the load is constant 24 hours a day, Standard can be cheaper, and if traffic fluctuates significantly or operations staff is limited, Autopilot is advantageous. If you need privileged containers or hostPath, you must use Standard."

Take a mock interview on this topic → WIA SOOM AI Interview · Start for free

⚠️ Common Mistakes & Cautions

❌
Resource Requests Not Set

Because Autopilot bills based on requests, if you don't set them, the defaults (500m CPU, 2Gi memory) are applied, and costs become higher than expected. Set requests accurately according to actual usage.

❌
Expecting Standard Features As-Is

For security reasons, Autopilot restricts privileged containers, hostPath mounts, and some sysctls. When migrating existing Standard workloads, test compatibility first.

✅
The right approach

Make use of Autopilot Compute Classes. You can optimize by using the default class for general workloads, Scale-Out for scalable batch jobs, and Balanced for memory-intensive jobs. Enable GKE cost allocation for cost monitoring.

🔗 Related Terms

📚 Learn More