Skip to content

Instantly share code, notes, and snippets.

@thiago-scherrer
Last active December 22, 2021 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiago-scherrer/49510fead9525605038248788dda55f7 to your computer and use it in GitHub Desktop.
Save thiago-scherrer/49510fead9525605038248788dda55f7 to your computer and use it in GitHub Desktop.
kops cms

How to run kops

How to create a S3 State

aws s3api create-bucket --bucket ${BUCKET_NAME} --region ${REGION} \
  --create-bucket-configuration \
  LocationConstraint=${REGION}

How to create cluster

kops create -f $NAME.yaml

How to get cluster config

kops get $NAME -o yaml > $NAME.yaml

How to update the cluster

kops update cluster $NAME --yes

How to export auth

kops export kubecfg --admin

How to delete a cluster

kops delete cluster --name ${NAME} --yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment