- To automate the management of Kubernetes clusters. For example, kOps can create, apply, and update cluster configurations.(3*)
curl -Lo kops https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64
chmod +x kops
sudo mv kops /usr/local/bin/kops
- AmazonVPCFullAccess
- AmazonEC2FullAccess
- AmazonS3FullAccess
- IAMFullAccess
- AmazonRoute53FullAccess
- AmazonSQSFullAccess
- AmazonEventBridgeFullAccess
aws s3api create-bucket --bucket kops-mgrsl-storage --region eu-north-1 --create-bucket-configuration LocationConstraint=eu-north-1
- export NAME=mgrsl-cluster.k8s.local
- export KOPS_STATE_STORE=s3://kops-mgrsl-storage
kops create cluster \
--name=${NAME} \
--cloud=aws \
--zones=eu-north-1a \
--discovery-store=${KOPS_STATE_STORE}/${NAME}/discovery \
--node-count=1 \
--node-size=t3.micro \
--master-size=t3.micro \
--master-volume-size=8 \
--node-volume-size=8
kops update cluster --name ${NAME} --yes --admin
kops validate cluster ${NAME}
kubectl get nodes
kops delete cluster --name ${NAME} --yes
aws s3 rb ${KOPS_STATE_STORE}