Using eksctl
This section outlines how to build a cluster for the lab exercises using the eksctl tool. This is the easiest way to get started, and is recommended for most learners.
The eksctl utility has been pre-installed in your IDE environment, so we can immediately create the cluster. This is the configuration that will be used to build the cluster:
cluster.yaml
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
availabilityZones:
- ${AWS_REGION}a
- ${AWS_REGION}b
- ${AWS_REGION}c
metadata:
name: ${EKS_CLUSTER_AUTO_NAME}
region: ${AWS_REGION}
version: "1.33"
tags:
karpenter.sh/discovery: ${EKS_CLUSTER_AUTO_NAME}
created-by: eks-workshop-v2
env: ${EKS_CLUSTER_AUTO_NAME}
vpc:
cidr: 10.43.0.0/16
clusterEndpoints:
privateAccess: true
publicAccess: true
autoModeConfig:
enabled: true
nodePools: [general-purpose, system]
accessConfig:
authenticationMode: API
bootstrapClusterCreatorAdminPermissions: true
A
Create a VPC across three availability zones
B
Create an EKS cluster, named eks-workshop-auto by default
C
Enable EKS Auto Mode built-in node pools
Apply the configuration file like so:
~$export EKS_CLUSTER_AUTO_NAME=eks-workshop-auto
~$curl -fsSL https://raw.githubusercontent.com/aws-samples/eks-workshop-v2/pull/1785/head/cluster/eksctl/cluster-auto.yaml | \
envsubst | eksctl create cluster -f -
This process will take approximately 20 minutes to complete.
Next Steps
Now that the cluster is ready, head to the Navigating the labs section to get started.
Continue to Navigating the Labs →