EKS Distro kOps Cluster¶
Follow these instructions to create an EKS-D Kubernetes cluster using
kOps. Refer to the kops documentation
for full instructions. Most of these commands require that you have
KOPS_CLUSTER_NAME set and exported.
kOps Cluster Create¶
1. Clone the eks-distro Repository¶
The easiest way to access our sample kOps scripts would be to clone the
repository and cd to the
2. Create the Cluster Configuration¶
You will need to set and export
KOPS_STATE_STORE to the s3 bucket to use for
your kOps state and
KOPS_CLUSTER_NAME to a valid subdomain controlled by Route53.
You can optionally set the environment variables below to use pre-created IAM
instance profile roles for your cluster instead of having kOps create them.
If your kOps state store does not exist, this script will create it. It will also generate the cluster configuration:
1 2 3 4
3. Create the Cluster¶
Once the cluster configuration has been created successfully, create the EKS-D cluster:
4. Wait for the Cluster¶
It may take a while for the cluster. You can use the
script to wait for the cluster to be ready. Once the cluster is ready this
script will add the AWS IAM authenticator.
When the script completes, your cluster is ready to use.
Verify Your Cluster is Running EKS-D¶
You can verify the pods in your cluster are using the EKS Distro images by running the following command:
kOps Cluster Delete¶
To tear down the cluster, run: