Saturday, September 30, 2023
HomeSoftware EngineeringFind out how to create an AWS EKS cluster utilizing eksctl

Find out how 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 may 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 robotically add the default YAML configuration for you.

cat << EOF > ekscluster.yaml
---
apiVersion: eksctl.io/v1alpha5
variety: 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 all the management aircraft logs, uncomment beneath:
# cloudWatch:
#  clusterLogging:
#    enableTypes: ["*"]

secretsEncryption:
  keyARN: ${MASTER_ARN}
EOF

Step 2 – Create the EKS Cluster

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

eksctl create cluster -f ekscluster.yaml
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments