DEV Community

loading...

[AWS EKS] Setup Worker Nodes with EC2

panupongdeve profile image PanupongDev Updated on ・1 min read

install eksctl

https://docs.aws.amazon.com/eks/latest/userguide/getting-started-eksctl.html

install kubectl

https://kubernetes.io/docs/tasks/tools/install-kubectl/

eksctl-cluster-ec2.yaml

time eksctl create cluster -f eksctl-cluster-ec2.yaml

basic eksctl

eksctl get cluster

eksctl get nodegroup --cluster my-cluster-ec2

eksctl scale nodegroup --cluster=my-cluster-ec2 --nodes=5 --name=ng-1

Alt Text

update nodegroups

eksctl create nodegroup --config-file=cluster-ec2.yaml --include='ng-mixed'

delete nodegroups

eksctl delete nodegroup --config-file=cluster-ec2.yaml --include='ng-mixed' --approve

Discussion (0)

Forem Open with the Forem app