
reference: https://github.com/kubernetes/kops/tree/master/docs/cli
Note: An IAM user must be configured before creating clusters: https://github.com/kubernetes/kops/blob/master/docs/aws.md#setup-iam-user
Note: A DNS must be configured before creating clusters: https://github.com/kubernetes/kops/blob/master/docs/aws.md#configure-dns
Note: Under config folder you can find all the available clusters config templates, if you added new template or change existing one please do it before building the image and push the changes to git!
Note: Under services folder you can find all the available services yml config file that will provision with the new cluster, you can add new service yml files before building the image!
brew install kopspip install --upgrade --user awsclicurl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl && chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubectldocker build -t kops .
docker run --rm -e AWS_ACCESS_KEY_ID=<aws_access_key_id> -e AWS_SECRET_ACCESS_KEY=<aws_secret_access_key> -e AWS_REGION=<region> kops list <bucket>
Note: Given empty template value, default template will be use.
docker run --rm -e AWS_ACCESS_KEY_ID=<aws_access_key_id> -e AWS_SECRET_ACCESS_KEY=<aws_secret_access_key> -e AWS_REGION=<region> kops create <cluster> <template> <bucket>
Note: In order to ssh the instances, use the following keys: https://s3.amazonaws.com/bucket_state_store/ssh-keys/
Run:
export KOPS_STATE_STORE=s3://bucket_state_store
commands to use for update:
kops export kubecfg --name=<cluster_name>kops edit instancegroup <instancegroup_name> (kops get instancegroup for instancegroups list)kops edit clusterkops update cluster --yes (run without --yes flag - dry run)kops rolling-update cluster --master-interval 6m --node-interval 6m --yes (-interval flags define for Kops what is the intervals between the instance restarts)docker run --rm -e AWS_ACCESS_KEY_ID=<aws_access_key_id> -e AWS_SECRET_ACCESS_KEY=<aws_secret_access_key> -e AWS_REGION=<region> kops teardown <cluster> <bucket>
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureContent type
Image
Digest
Size
175.5 MB
Last updated
over 7 years ago
docker pull devopsil/kops-docker