/kubernetes-platform-skills:managed-kubernetes-eks-aks-gkefrom kubernetes-platform-skills
Guides provisioning and configuring managed Kubernetes clusters on AWS EKS, Azure AKS, and Google GKE — cluster creation, node group/pool design, and per-cloud workload identity (IRSA, Azure AD Workload Identity, GKE Workload Identity Federation) for pod access without static keys.
Ships in kubernetes-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Managed Kubernetes offloads control-plane operation (etcd, API server HA, upgrades) to the cloud provider, but node groups, networking, and — most consequentially — how pods authenticate to other cloud services are still the operator's responsibility to design correctly. Getting workload identity wrong is the most common and highest-impact mistake: falling back to long-lived static cloud credentials mounted as Kubernetes Secrets when a keyless federation mechanism (IRSA, Azure AD Workload Identity, GKE Workload Identity Federation) was available recreates exactly the long-lived-credential risk cloud IAM hardening exists to eliminate. This skill covers cluster/node-group provisioning and per-cloud workload identity; it assumes the surrounding cloud account/org structure already exists.
eksctl ≥ 0.180 or Terraform's
aws provider for EKS; az aks CLI ≥ 2.60 for AKS; gcloud container for GKE — plus kubectl and, ideally, the same IaC tool
(Terraform/OpenTofu) used for the rest of the environment rather than
mixing imperative CLI cluster creation with declarative everything
else.Provision the cluster with an explicit, pinned Kubernetes version and private (or restricted-public) API endpoint access:
# EKS (eksctl)
eksctl create cluster --name payments-prod --version 1.30 \
--region us-east-1 --without-nodegroup \
--vpc-private-subnets <subnet-ids>
# AKS
az aks create --name payments-prod --resource-group payments-rg \
--kubernetes-version 1.30 --enable-managed-identity \
--network-plugin azure --enable-private-cluster
# GKE
gcloud container clusters create payments-prod \
--release-channel regular --enable-private-nodes \
--workload-pool=<project-id>.svc.id.goog
Prefer a private/restricted API endpoint over fully public in every case; each cloud's console/CLI defaults vary, so set this explicitly rather than trusting the default.
Design node groups/pools per workload shape, not one generic pool for everything:
# EKS managed node group, on-demand, general purpose
eksctl create nodegroup --cluster payments-prod --name general \
--node-type m6i.large --nodes-min 3 --nodes-max 10 --managed
Use Fargate (EKS), Autopilot (GKE), or AKS's virtual-node/serverless options for bursty, low-ops-overhead workloads; use dedicated spot/preemptible node pools with taints for interruption-tolerant batch workloads, keeping stateful/critical workloads off spot capacity.
Set up cluster autoscaling appropriate to the node group model — Cluster Autoscaler (works across all three, watches for unschedulable pods) or a cloud-native alternative (Karpenter on EKS gives faster, more bin-packing-aware scale-out than the classic Cluster Autoscaler):
# Karpenter NodePool (EKS) — minimal example
apiVersion: karpenter.sh/v1
kind: NodePool
metadata: { name: general }
spec:
template:
spec:
requirements:
- key: karpenter.sh/capacity-type
operator: In
values: ["on-demand"]
limits: { cpu: "1000" }
Configure workload identity — EKS (IRSA or Pod Identity). IRSA maps a Kubernetes ServiceAccount to an IAM role via OIDC federation; EKS Pod Identity (newer, simpler setup, no per-role OIDC trust policy templating) is the current recommended approach for new clusters on supported EKS versions:
eksctl utils associate-iam-oidc-provider --cluster payments-prod --approve
eksctl create iamserviceaccount \
--cluster payments-prod --namespace payments \
--name payments-api --role-name payments-api-s3-read \
--attach-policy-arn arn:aws:iam::<ACCOUNT_ID>:policy/PaymentsS3ReadOnly \
--approve
apiVersion: v1
kind: ServiceAccount
metadata:
name: payments-api
namespace: payments
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::<ACCOUNT_ID>:role/payments-api-s3-read
Pods using this ServiceAccount get temporary, auto-rotated credentials via the injected AWS SDK environment/webhook — no static access key ever touches the cluster.
Configure workload identity — AKS (Azure AD Workload Identity):
az identity create --name payments-api-identity --resource-group payments-rg
az identity federated-credential create \
--name payments-api-fic --identity-name payments-api-identity \
--resource-group payments-rg \
--issuer <AKS_OIDC_ISSUER_URL> \
--subject system:serviceaccount:payments:payments-api
apiVersion: v1
kind: ServiceAccount
metadata:
name: payments-api
namespace: payments
annotations:
azure.workload.identity/client-id: <MANAGED_IDENTITY_CLIENT_ID>
labels:
azure.workload.identity/use: "true"
Configure workload identity — GKE (Workload Identity Federation):
gcloud iam service-accounts add-iam-policy-binding \
payments-api-gsa@<project-id>.iam.gserviceaccount.com \
--role roles/iam.workloadIdentityUser \
--member "serviceAccount:<project-id>.svc.id.goog[payments/payments-api]"
apiVersion: v1
kind: ServiceAccount
metadata:
name: payments-api
namespace: payments
annotations:
iam.gke.io/gcp-service-account: payments-api-gsa@<project-id>.iam.gserviceaccount.com
Attach the ServiceAccount to the workload (identical pattern across all three clouds — only annotations/webhooks differ):
spec:
template:
spec:
serviceAccountName: payments-api
containers:
- name: payments-api
image: ghcr.io/example/payments-api:1.4.2
Verify least privilege end-to-end: confirm the pod can perform
only the intended cloud API calls and nothing more by testing from
inside the pod (aws sts get-caller-identity, az account show,
gcloud auth list) and cross-checking the bound role/policy's
actual permissions against
cloud-iam-hardening's
least-privilege review guidance — a workload-identity binding is only
as safe as the policy it's bound to.
Symptom: A pod's cloud SDK calls fail with an access-denied error
even though the IAM role/managed identity clearly has the needed
permission attached.
Fix: Check that the ServiceAccount annotation, the trust
policy/federated credential's subject (must exactly match
system:serviceaccount:<namespace>:<name>), and the pod's actual
serviceAccountName all agree — a namespace or ServiceAccount name
typo in any one of the three breaks the federation silently, and the
pod instead falls back to (or fails entirely without) the node's own
identity, not the intended workload identity.
Symptom: Cluster autoscaler or Karpenter doesn't scale out despite
clearly unschedulable pods.
Fix: Check for a node group/pool at its configured max size, an
IAM/managed-identity permission the autoscaler component itself needs
(to call the cloud's scale-set/instance-group API) that's missing, or
a pod requesting a resource combination (e.g. a specific GPU type) no
configured node pool can satisfy — kubectl describe pod and the
autoscaler component's own logs (not just cluster events) usually
pinpoint which.
Symptom: A control-plane version auto-upgraded and an installed Operator/webhook (Istio, cert-manager, an admission webhook) started failing immediately after. Fix: Managed control planes can enforce upgrades on a schedule once a version reaches end-of-support, regardless of whether the cluster owner is ready. Pin and proactively schedule upgrades ahead of the provider's forced timeline, and validate every installed CRD/webhook's compatibility with the target minor version in a non-prod cluster first.
Symptom: A workload identity binding works for one namespace's
ServiceAccount but a second, differently-named ServiceAccount
intended for the same workload in another namespace doesn't get the
same access.
Fix: Workload identity trust bindings (IRSA trust policy, Azure AD
federated credential subject, GKE workloadIdentityUser binding) are
scoped to an exact namespace:serviceaccount pair — copying a
Deployment to a new namespace without also creating and binding a
matching ServiceAccount in that namespace leaves it with no (or the
node's default, broader) identity.
Symptom: Node pool costs are far higher than expected for the
actual workload.
Fix: Check for over-provisioned requests driving the autoscaler
to add nodes well beyond actual usage, a lack of spot/preemptible
usage for interruption-tolerant workloads, or idle node pools left at
a nonzero minimum size — reconcile node pool minimums against actual
baseline load, not against a "just in case" buffer chosen at initial
setup and never revisited.
Scenario: Provision an EKS cluster with a general-purpose managed
node group and give payments-api least-privilege, read-only access to
a specific S3 bucket via IRSA — no static AWS keys anywhere.
eksctl create cluster --name payments-prod --version 1.30 \
--region us-east-1 --vpc-private-subnets <subnet-ids> --without-nodegroup
eksctl create nodegroup --cluster payments-prod --name general \
--node-type m6i.large --nodes-min 3 --nodes-max 10 --managed
eksctl utils associate-iam-oidc-provider --cluster payments-prod --approve
// payments-s3-read-policy.json
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:ListBucket"],
"Resource": [
"arn:aws:s3:::payments-statements-prod",
"arn:aws:s3:::payments-statements-prod/*"
]
}]
}
aws iam create-policy --policy-name PaymentsS3ReadOnly \
--policy-document file://payments-s3-read-policy.json
eksctl create iamserviceaccount \
--cluster payments-prod --namespace payments \
--name payments-api --role-name payments-api-s3-read \
--attach-policy-arn arn:aws:iam::<ACCOUNT_ID>:policy/PaymentsS3ReadOnly \
--approve
kubectl set serviceaccount deployment/payments-api payments-api -n payments
kubectl exec -n payments deploy/payments-api -- aws sts get-caller-identity
The sts get-caller-identity output shows the assumed
payments-api-s3-read role's ARN (not the node's own instance-profile
identity), and aws s3 ls s3://payments-statements-prod succeeds from
inside the pod while any write or delete call to that bucket, or any
call to an unrelated bucket, fails with AccessDenied — confirming both
the federation and the least-privilege scope are working as intended.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
managed-kubernetes, eks, aks, gke, workload-identity, irsa, node-groups, cluster-autoscaling
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin kubernetes-platform-skills35 skills in this plugin
/cert-manager-tls-automationGuides installing and configuring cert-manager for automated TLS certificate issuance and renewal — Issuers vs. ClusterIssuers, ACME/ Let's Encrypt HTTP-01 and DNS-01 challenges, private-CA issuance, and integration with Ingress-nginx and Istio gateways. Use when a user asks to "automate TLS certificates on Kubernetes," "set up cert-manager with Let's Encrypt," "fix a stuck Certificate that won't become Ready," "use DNS-01 for a wildcard cert," "rotate mTLS certs automatically," or "issue certs from an internal CA."
/cni-networking-calico-flannelGuides choosing and installing a Kubernetes CNI plugin — Calico vs. Flannel — including NetworkPolicy enforcement capability differences, BGP vs. VXLAN/overlay data paths, and IP address management (IPAM) tradeoffs. Use when a user asks to "choose a CNI plugin for Kubernetes," "enable NetworkPolicy enforcement," "set up Calico with BGP peering," "install Flannel," "debug pod-to-pod connectivity across nodes," or "migrate from Flannel to Calico."
/complete-kubernetes-deployment-on-aks-from-scratchSequences a complete, end-to-end AKS deployment from a bare Azure subscription to a production-ready cluster serving a first workload — Azure landing zone prerequisites, AKS cluster and node pool provisioning, Azure CNI (with the Calico/Cilium alternative noted), ingress (Application Gateway Ingress Controller vs. ingress-nginx), cert-manager with Azure DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on AKS from scratch," "set up a new AKS environment end to end," "build a production AKS cluster from a fresh Azure subscription," or "give me the full sequence to go from nothing to a working AKS cluster."
/complete-kubernetes-deployment-on-eks-from-scratchSequences a complete, end-to-end EKS deployment from a bare AWS account to a production-ready cluster serving a first workload — landing zone/IAM prerequisites, EKS cluster and node group provisioning, VPC CNI (with the Calico/Cilium alternative noted), ingress (ALB vs. ingress-nginx), cert- manager with Route 53 DNS-01, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/ orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on EKS from scratch," "stand up a new EKS environment end to end," "build a production EKS cluster from a fresh AWS account," or "give me the full sequence to go from nothing to a working EKS cluster."
/complete-kubernetes-deployment-on-gke-from-scratchSequences a complete, end-to-end GKE deployment from a bare GCP project to a production-ready cluster serving a first workload — GCP landing zone prerequisites, GKE cluster and node pool provisioning, VPC-native/ Dataplane V2 CNI (with the Calico alternative noted), ingress (GKE Ingress/Gateway API vs. ingress-nginx), cert-manager with Cloud DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on GKE from scratch," "set up a new GKE environment end to end," "build a production GKE cluster from a fresh GCP project," or "give me the full sequence to go from nothing to a working GKE cluster."
/complete-kubernetes-deployment-on-oke-oci-from-scratchSequences a complete, end-to-end OKE (Oracle Container Engine for Kubernetes) deployment from a bare OCI tenancy to a production-ready cluster serving a first workload — OCI landing zone prerequisites (Compartments, Dynamic Groups), OKE Enhanced cluster and node pool provisioning, VCN-Native pod networking (with the Calico NetworkPolicy add-on noted), ingress (Native Ingress Controller vs. ingress-nginx), cert-manager with OCI DNS via a community webhook solver, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill sequencing several existing tool-specific skills in the correct order and flagging the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on OKE from scratch," "set up OKE on OCI end to end," "build a production OKE cluster from a fresh OCI tenancy," or "give me the full sequence to go from nothing to a working OKE cluster."
Other plugins' skills for the same job