The right way to create an AWS EKS cluster utilizing eksctl


eksctl dramatically simplifies the creation of AWS EKS clusters, by offering a easy command-line interface.

Step 1 – Outline a Cluster YAML

You possibly can both create a file referred to as ekscluster.yaml and place the YAML in, or run the next command which can create a file referred to as ekscluster.yaml and routinely add the default YAML configuration for you.

cat << EOF > ekscluster.yaml
---
apiVersion: eksctl.io/v1alpha5
form: ClusterConfig

metadata:
  identify: eksworkshop-eksctl
  area: ${AWS_REGION}
  model: "1.19"

availabilityZones: ["${AZS[0]}", "${AZS[1]}", "${AZS[2]}"]

managedNodeGroups:
- identify: nodegroup
  desiredCapacity: 3
  instanceType: t3.small
  ssh:
    enableSsm: true

# To allow the entire management aircraft logs, uncomment beneath:
# cloudWatch:
#  clusterLogging:
#    enableTypes: ["*"]

secretsEncryption:
  keyARN: ${MASTER_ARN}
EOF

Step 2 – Create the EKS Cluster

Inform the eksctl instrument to create a brand new cluster utilizing the ekscluster.yaml.

eksctl create cluster -f ekscluster.yaml

Leave a Reply