/kubernetes-platform-skills:complete-kubernetes-deployment-on-eks-from-scratchfrom kubernetes-platform-skills
Sequences the eight phases of a production EKS deployment from a bare AWS account: IAM, cluster provisioning, VPC CNI, ingress, cert-manager with Route53, conformance tests, Helm workload, and health baseline.
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.
Standing up a production-ready EKS cluster is not one task — it is roughly
eight tasks that must happen in a specific order, each with its own
existing skill in this repository covering the depth. Get the order wrong
(most commonly: standing up cert-manager's DNS-01 solver before the IAM/
OIDC federation it needs exists, or declaring a cluster "done" the moment
kubectl get nodes shows Ready) and the result is a cluster that looks
finished but fails the first time someone actually depends on it — a stuck
Certificate, an Ingress that never gets a usable address, or a CNI
NetworkPolicy that silently no-ops. This skill is the AWS-specific
end-to-end runbook: it sequences AWS landing zone/IAM prerequisites, EKS
provisioning, VPC CNI, ingress, cert-manager, conformance validation, a
first workload, and a health baseline into one ordered path, cross-
referencing the tool-specific skill that covers each phase's actual detail
rather than repeating it here.
eksctl ≥ 0.180, kubectl, helm ≥ 3.14, and awscli v2 authenticated
against the target account.This is the phase sequence. Each phase links to the skill that covers its full depth; the text here covers only EKS-specific sequencing and integration decisions.
Phase 1 — AWS landing zone & IAM prerequisites. Confirm the target account sits in the correct OU with guardrails applied (see aws-landing-zone-setup). Critically, decide and pre-plan every IAM role this cluster will need via IRSA/Pod Identity now — not just the cluster/node roles, but the cert-manager Route 53 DNS-01 role and the workload's own application role from Phase 7. Planning these together avoids re-running IAM Terraform/eksctl commands per phase later:
aws iam create-policy --policy-name Route53DNS01Payments \
--policy-document file://route53-dns01-policy.json
See cloud-iam-hardening for scoping this policy to the specific hosted zone ID only.
Phase 2 — Provision the EKS cluster and node group. Use
managed-kubernetes-eks-aks-gke
for the full eksctl create cluster/node group/IRSA setup detail.
EKS-specific sequencing point: associate the OIDC provider in this
phase, even though the first IRSA role that consumes it (cert-manager,
Phase 5) doesn't exist yet — associating it later requires no
destructive action, but planning it here means Phase 5 is a five-minute
eksctl create iamserviceaccount instead of a cluster-level change:
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
Phase 3 — CNI: VPC CNI by default. EKS ships the AWS VPC CNI
(aws-node DaemonSet) pre-installed — unlike self-managed kubeadm/K3s
clusters, there is no "install a CNI" step for the default path; a
fresh EKS cluster's nodes reach Ready immediately because VPC CNI is
already running. Confirm it's healthy and sized correctly for the node
type's max-pods-per-node limit (VPC CNI allocates pod IPs directly from
VPC ENIs, so pod density per node is capped by instance ENI/IP limits,
not an arbitrary Kubernetes default):
kubectl get daemonset aws-node -n kube-system
kubectl describe configmap amazon-vpc-cni -n kube-system
Alternative: if NetworkPolicy enforcement beyond VPC CNI's native
(limited, opt-in) policy support is required, or a non-AWS-specific CNI
is preferred for portability, replace VPC CNI with Calico or Cilium —
see
cni-networking-calico-flannel
for the tradeoffs; this is a deliberate, planned swap done before any
workload is scheduled, not a default recommendation for most EKS
clusters.
Phase 4 — Ingress: ALB vs. ingress-nginx, and DNS wiring. Decide deliberately, since this determines the load-balancer story for the rest of the deployment:
ip routes directly to pod IPs (works
cleanly with VPC CNI's pod-ENI addressing). Preferred when ALB-
specific features (WAF association, Cognito auth at the LB) are
needed.Service of type: LoadBalancer
(provisions a Network Load Balancer) — see
ingress-nginx-configuration
for the full install/annotation detail. Preferred for parity with
non-AWS clusters (AKS/GKE/on-prem) running the same ingress-nginx
configuration everywhere.
Either way, once the controller has an external address, create the
Route 53 record pointing at it before Phase 5's DNS-01 challenge
needs to resolve — DNS-01 validates against the zone's actual TXT
records, not the Ingress's A/CNAME record, but a missing
application DNS record here means Phase 7's workload is unreachable
even after TLS succeeds.Phase 5 — cert-manager with Route 53 DNS-01. Install cert-manager
and configure a ClusterIssuer per
cert-manager-tls-automation.
The EKS-specific integration point: cert-manager's Route 53 API calls
must authenticate via the IRSA role planned in Phase 1 and the OIDC
provider associated in Phase 2 — not a static AWS access key:
eksctl create iamserviceaccount \
--cluster payments-prod --namespace cert-manager \
--name cert-manager --role-name cert-manager-route53-dns01 \
--attach-policy-arn arn:aws:iam::<ACCOUNT_ID>:policy/Route53DNS01Payments \
--approve
helm install cert-manager jetstack/cert-manager \
--namespace cert-manager --create-namespace --version v1.15.1 \
--set crds.enabled=true --set serviceAccount.create=false \
--set serviceAccount.name=cert-manager
Validate against Let's Encrypt staging first, exactly as cert-manager-tls-automation describes, before cutting over to production.
Phase 6 — Conformance and smoke validation. Run Sonobuoy quick
mode, then full certified-conformance, then the targeted DNS/storage/
ingress smoke tests — see
kubernetes-cluster-post-provision-conformance-validation.
For EKS specifically, also confirm the gp3/ebs-csi default
StorageClass (via the EBS CSI driver add-on) actually provisions a
PVC — a common EKS-specific gap is the EBS CSI driver add-on not being
enabled at cluster creation, which the generic conformance suite
surfaces as a storage-test failure that traces back to a missing
EKS add-on, not a Kubernetes defect.
Phase 7 — Deploy the first workload via Helm. Package and install per helm-chart-authoring, using the IRSA ServiceAccount pattern from managed-kubernetes-eks-aks-gke for any of the workload's own AWS API access (its own IAM role, planned back in Phase 1, is distinct from cert-manager's):
helm upgrade --install payments-api oci://ghcr.io/example/charts/payments-api \
--version 2.3.0 --namespace payments --create-namespace --atomic --timeout 5m
Phase 8 — Node/cluster health baseline. Establish the ongoing
operational baseline before declaring the cluster handed off: node
drain/cordon discipline and NotReady diagnosis via
kubernetes-node-maintenance-and-troubleshooting.
Note what does not apply here: EKS's control plane and etcd are
fully AWS-managed — the procedures in
etcd-backup-restore-and-cluster-health
do not apply to this cluster at all (there is no customer-accessible
etcdctl endpoint); rely on EKS control-plane logging (enabled to the
landing zone's central log destination) instead of etcd-level
snapshotting for control-plane observability.
Symptom: cert-manager's Certificate resource in Phase 5 never
progresses past Pending, with the DNS-01 Challenge object showing
an authentication or authorization error calling Route 53.
Fix: This almost always traces back to Phase 1: the IRSA policy was
either never scoped to the specific hosted zone ID, or the OIDC
provider from Phase 2 wasn't associated before the iamserviceaccount
was created in Phase 5, leaving the ServiceAccount with no valid trust
relationship. Confirm the trust policy's subject matches
system:serviceaccount:cert-manager:cert-manager exactly and that the
policy document references the exact hosted zone ARN, not a wildcard.
Symptom: The ALB or NLB provisioned in Phase 4 comes up healthy, but
Phase 5's DNS-01 challenge still fails validation.
Fix: DNS-01 validates against the hosted zone's TXT records via
the Route 53 API directly — it does not depend on the Ingress/Service
having a working A/CNAME record at all. A failure here means the
IAM role can't write to the zone (see the pitfall above), not an
ingress misconfiguration; don't waste time debugging the load balancer
when the actual failure is in cert-manager's Route 53 API calls.
Symptom: The cluster is declared "production ready" and handed to
an application team the same day Phase 2 (cluster/node group creation)
completes, skipping Phases 6 entirely — and a NetworkPolicy the
application team relies on turns out to be a silent no-op once real
traffic patterns exercise it weeks later.
Fix: This is exactly the gap
kubernetes-cluster-post-provision-conformance-validation
exists to catch before handoff, not after. Treat Phase 6 as a required
gate in the sequence, not an optional step skipped under deadline
pressure — if VPC CNI was swapped for Calico in Phase 3 specifically
for NetworkPolicy enforcement, the smoke test must include an actual
positive/negative connectivity test of that policy, not just a
conformance pass.
Symptom: A storage smoke test in Phase 6 fails with PVCs stuck
Pending, even though the cluster otherwise looks healthy.
Fix: EKS does not enable the EBS CSI driver by default — it's an
optional add-on. Confirm it was enabled during Phase 2
(eksctl create addon --name aws-ebs-csi-driver) rather than assuming
every EKS cluster ships a working default StorageClass out of the
box the way a fresh kubeadm-with-Longhorn or a GKE cluster might.
Scenario: Deploy payments-api end-to-end on a new EKS cluster in a
freshly vended AWS account, with ingress-nginx (for parity with an
existing AKS cluster running the same application), Route 53 DNS-01, and
a full validation gate before handoff.
# Phase 1 — IAM prerequisite for cert-manager, planned now
aws iam create-policy --policy-name Route53DNS01Payments \
--policy-document file://route53-dns01-policy.json
# Phase 2 — cluster + nodes + OIDC
eksctl create cluster --name payments-prod --version 1.30 \
--region us-east-1 --vpc-private-subnets subnet-aaa,subnet-bbb --without-nodegroup
eksctl create nodegroup --cluster payments-prod --name general \
--node-type m6i.large --nodes-min 3 --nodes-max 10 --managed
eksctl create addon --cluster payments-prod --name aws-ebs-csi-driver
eksctl utils associate-iam-oidc-provider --cluster payments-prod --approve
# Phase 3 — VPC CNI is already running; confirm health
kubectl get daemonset aws-node -n kube-system
# Phase 4 — ingress-nginx via Helm, NLB-backed
helm install ingress-nginx ingress-nginx/ingress-nginx \
--namespace ingress-nginx --create-namespace \
--set controller.service.type=LoadBalancer
kubectl get svc -n ingress-nginx ingress-nginx-controller # note EXTERNAL-IP
# create Route 53 A/ALIAS record for payments.example.com -> that NLB
# Phase 5 — cert-manager with IRSA-backed Route 53 DNS-01
eksctl create iamserviceaccount \
--cluster payments-prod --namespace cert-manager \
--name cert-manager --role-name cert-manager-route53-dns01 \
--attach-policy-arn arn:aws:iam::<ACCOUNT_ID>:policy/Route53DNS01Payments --approve
helm install cert-manager jetstack/cert-manager \
--namespace cert-manager --create-namespace --version v1.15.1 \
--set crds.enabled=true --set serviceAccount.create=false --set serviceAccount.name=cert-manager
kubectl apply -f route53-staging-issuer.yaml # validate, then swap to prod issuer
# Phase 6 — validation gate
sonobuoy run --mode quick --wait && sonobuoy results "$(sonobuoy retrieve)"
sonobuoy run --mode certified-conformance --wait && sonobuoy results "$(sonobuoy retrieve)" --mode=report
# Phase 7 — first workload
helm upgrade --install payments-api oci://ghcr.io/example/charts/payments-api \
--version 2.3.0 --namespace payments --create-namespace --atomic --timeout 5m
# Phase 8 — health baseline
kubectl get nodes
kubectl get pdb -A
curl -I https://payments.example.com returns HTTP/2 200 with a
Let's Encrypt production certificate, confirming Phases 1–7 wired
together correctly end to end, and the cluster's node maintenance
runbook (Phase 8) is in place before the first planned patch window.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Kubernetes, AWS, Docker, Helm, Terraform
eks, kubernetes-cluster, infrastructure-runbook, landing-zone, helm
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-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."
/complete-kubernetes-deployment-on-prem-with-kubeadm-from-scratchSequences a complete, end-to-end self-managed on-prem Kubernetes deployment from bare-metal hosts to a production-ready HA cluster serving a first workload — physical/network prerequisites, kubeadm init/join HA control plane with kube-vip, CNI (Calico/Flannel), MetalLB for LoadBalancer Services (bare metal has no cloud load balancer), ingress-nginx, cert-manager with a self-hosted internal CA or ACME, conformance validation, etcd backup setup, and a Helm-deployed first workload. 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 Kubernetes on-prem from scratch," "build a bare-metal Kubernetes cluster end to end with kubeadm," "set up a self-managed HA cluster on our own hardware," "get LoadBalancer Services working on bare metal," or "give me the full sequence to go from bare servers to a working self-managed Kubernetes cluster."
Other plugins' skills for the same job