Create production cluster

EKS Anywhere supports a vSphere provider for production grade EKS Anywhere deployments. The purpose of this doc is to walk you through getting set-up with EKS Anywhere. EKS Anywhere allows you to provision and manage Amazon EKS on your own infrastructure.

Prerequisite Checklist

EKS Anywhere needs to be run on an administrative machine that has certain machine requirements . An EKS Anywhere deployment will also require the availability of certain resources from your VMware vSphere deployment .


  1. Generate a cluster config

    eksctl anywhere generate clusterconfig $CLUSTER_NAME \
       --provider vsphere > eksa-cluster.yaml

    A production grade EKS Anywhere cluster should be made with at least three control plane nodes and three worker nodes for high availability and rolling upgrades:

        count: 2
          host: ""
          kind: VSphereMachineConfig
          name: prod-control-plane
        count: 3
          kind: VSphereMachineConfig
          name: prod-etcd
        - count: 2
            kind: VSphereMachineConfig
            name: prod-data-plane

    Further information about the values in the eksa-cluster.yaml can be found in the cluster specification reference

  2. Set Credential Environment Variables

    Before you create a cluster, you will need to set and export these environment variables for your vSphere user name and password. Make sure you use single quotes around the values so that your shell does not interpret the values:

    export EKSA_VSPHERE_USERNAME='billy'
    export EKSA_VSPHERE_PASSWORD='t0p$ecret'

    EKS Anywhere clusters function as both workload and management clusters. Management clusters are responsible for the lifecycle of workload clusters (i.e. create, upgrade, and delete clusters), while workload clusters run user applications.

    Future versions of EKS Anywhere will enable users to create a dedicated management cluster that will govern multiple workload clusters allowing for segmentation of different cluster types.

  3. Create a cluster

    After you have created your eks-cluster.yaml and set your credential environment variables, you will be ready to create a cluster:

    eksctl anywhere create cluster -f eksa-cluster.yaml

    Example command output

     Performing setup and validations
     ✅ Connected to server
     ✅ Authenticated to vSphere
     ✅ datacenter validated
     ✅ datastore validated
     ✅ folder validated
     ✅ resource pool validated
     ✅ network validated
     ✅ Template validated
     ✅ validation succeeded	{"validation": "vsphere Provider setup is valid"}
     Creating new bootstrap cluster
     Installing cluster-api providers on bootstrap cluster
     Provider specific setup
     Creating new workload cluster
     Installing networking on workload cluster
     Installing storage class on workload cluster
     Installing cluster-api providers on workload cluster
     Moving cluster management from bootstrap to workload cluster
     Installing EKS-A custom components (CRD and controller) on workload cluster
     Creating EKS-A CRDs instances on workload cluster
     Installing AddonManager and GitOps Toolkit on workload cluster
     GitOps field not specified, bootstrap flux skipped
     Deleting bootstrap cluster
     🎉 Cluster created!
  4. Use the cluster

    Once the cluster is created you can use it with the generated KUBECONFIG file in your local directory

    export KUBECONFIG=${PWD}/${CLUSTER_NAME}/${CLUSTER_NAME}-eks-a-cluster.kubeconfig
    kubectl get ns

    Example command output

     NAME                                STATUS   AGE
     capi-kubeadm-bootstrap-system       Active   4m26s
     capi-kubeadm-control-plane-system   Active   4m19s
     capi-system                         Active   4m36s
     capi-webhook-system                 Active   4m46s
     capv-system                         Active   4m4s
     cert-manager                        Active   5m40s
     default                             Active   12m
     eksa-system                         Active   3m7s
     kube-node-lease                     Active   12m
     kube-public                         Active   12m
     kube-system                         Active   12m

    You can now use the cluster like you would any Kubernetes cluster. Deploy the test application with:

    kubectl apply -f ""

    Verify the test application in the deploy test application section . See the Cluster management section with more information on common operational tasks like scaling and deleting the cluster.