Manages core GKE cluster provisioning, credentials, Autopilot vs Standard selection, and workload deployment. Use when creating GKE clusters, fetching kubectl c
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-gke-basics-2e2909be7c13 ,按照其中的说明把「gke-basics」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Managed Kubernetes platform on Google Cloud. Defaults to Autopilot mode unless Standard is explicitly required.
sysctl) are required.hostPath mounts to the host OS filesystem.gke-cluster-creation.Private Autopilot Clusters:
--enable-private-nodes for private node IP addresses.--enable-private-endpoint to disable public IP access to the control plane.--enable-master-authorized-networks and --master-authorized-networks=CIDR_BLOCK:
gcloud container clusters create-auto CLUSTER_NAME --region=REGION \
--enable-private-nodes \
--enable-private-endpoint \
--enable-master-authorized-networks \
--master-authorized-networks=CIDR_BLOCK
Workload Identity (IAM Binding):
KSA) to bind to the Google Service Account (GSA):
metadata:
annotations:
iam.gke.io/gcp-service-account: GSA_NAME@PROJECT_ID.iam.gserviceaccount.com
Autopilot Resource Requests:
limits to allow Autopilot to set defaults matching requests.Cluster Credentials:
--region (for regional clusters) or --zone (for zonal clusters) when fetching credentials:
gcloud container clusters get-credentials CLUSTER_NAME --region=REGION --quiet
Core Concepts: Architecture, cluster modes (Autopilot vs Standard), networking, scaling, and security model.
CLI Usage & Tool Reference: Tool preference hierarchy (MCP vs gcloud vs kubectl), gcloud container commands, and user preference overrides.
Client Libraries: Official Kubernetes and Google Cloud Container client libraries in Python, Go, Node.js, and Java.
MCP Usage: Connecting to and using the 23 structured GKE MCP tools for cluster management, K8s resources, and diagnostics.
Infrastructure as Code: Terraform examples for google_container_cluster (Autopilot), Kubernetes provider resources, and YAML samples.