Skip to content

kubectl

Progress checklist

KUBECTL
kubectl — the Kubernetes command-line tool used to interact with the cluster after it is provisioned.
is the standard CLI for any Kubernetes cluster. After the EKS
Elastic Kubernetes Service — AWS-managed Kubernetes control plane; you manage nodes and workloads, AWS runs the API server, etcd, and scheduler.
cluster is created in the Cluster batch, you’ll use it to verify the control plane, list nodes, inspect pods, and (in later batches) deploy workloads.

EKS doesn’t replace kubectl — AWS gives you a managed control plane; kubectl remains your primary interface to the cluster.

  1. Install kubectl. Required

    Install a version of kubectl that is within one minor version of the Kubernetes version your EKS cluster will run. The latest stable release is always safe to install now.

    Install via Homebrew
    brew install kubectl

    Or, install a specific version:

    Terminal window
    brew install kubernetes-cli
  2. Verify the installation.

    Terminal window
    kubectl version --client

    Expected output (version numbers will differ):

    Client Version: v1.30.x
    Kustomize Version: v5.x.x

    The client version is all that matters here. The server version will be shown once a cluster exists and kubeconfig is configured.

  3. Note: kubeconfig is set up in the Cluster batch.

    When you reach the Cluster batch, you’ll run:

    Terminal window
    aws eks update-kubeconfig --region <your-region> --name <cluster-name>

    This writes a kubeconfig entry for the EKS cluster into ~/.kube/config. After that, standard kubectl commands like kubectl get nodes will work against your cluster.

Continue to Git to install Git, set your identity, and clone the Terraform repo.