Use this procedure to create an Amazon EKS cluster with 3 nodes using eksctl.
We
provide this example procedure purely for informational purposes. See Amazon EKS documentation for the official
procedure.
-
Create an EKS cluster without a node group.
In this example, we name the cluster
cn2cluster
.
eksctl create cluster --name cn2cluster --without-nodegroup
Take
note of the service IP address subnet. You'll need this when you install CN2 later. By
default, Amazon EKS assigns service IP addresses from either the 10.100.0.0/16 or the
172.20.0.0/16 CIDR
blocks.
eksctl get cluster --name cn2cluster -o json | jq .[0].KubernetesNetworkConfig
-
Attach managed or self-managed worker nodes running Amazon EKS-optimized AMI to the
cluster.
Ensure you pick an AMI that is running a kernel that is supported by CN2.
eksctl create nodegroup --cluster cn2cluster --node-type m5.xlarge --node-ami-family AmazonLinux2 --max-pods-per-node 100 --node-private-networking --nodes-min 3 --nodes-max 3
-
Use standard kubectl commands to check on the deployment.
Check that the nodes are
up.
kubectl get nodes
Check
that the pods have a STATUS of Running. If not, wait a few minutes for the pods to come
up.
kubectl get pods -A
You've successfully created an Amazon EKS cluster. You're now
ready to install CN2 on this cluster.