- create cluster with 2 t3.micro nodes
$ eksctl create cluster --name eksctl-test --nodegroup-name ng-default --node-type t3.micro --nodes 2
OR
$ eksctl create cluster --config-file=eksctl-create-cluster.yaml
※create eks cluster with managed node group
$ eksctl create cluster --name <name> --version 1.15 --nodegroup-name <nodegrpname> --node-type t3.micro --nodes 2 --managed
※ ECS Cluster with Fargate Profile
$ eksctl create cluster --name <name> --fargate
- create node-group
$ eksctl create nodegroup --config-file=eksctl-create-ng.yaml
- get the information
$ eksctl get nodegroup --cluster=eksctl-test
$ eksctl get cluster
- delete cluster
$ eksctl delete cluster --name=eksctl-test
- update managed nodegroup
$ eksctl upgrade nodegroup --name=managed-ng-1 --cluster=managed-cluster
eksctl create cluster \
--name eks-cluster \
--version 1.22 \
--with-oidc \
--nodegroup-name eks-cluster-node-group \
--node-type c5.large \
--nodes 1 \
--nodes-min 1
EKS Cluster を削除する前に、Service Type が LoadBalancer の Service が存在するばあいは、事前に削除
kubectl delete svc service
cluster の削除
eksctl delete cluster --name eks-cluster