Cheat Sheet
Useful Kops tricks.
Enable autocomplete
Create cluster
Export your AWS credentials.
Create a bucket, for example STATE-BUCKET.
Then create your cluster.
This setup is not suitable for production environments. admin-access
and authorization
are wide open.
Validate cluster
Get cluster credentials
Get admin password
Get token
Upgrade Kubernetes version
Before you begin
Double check your Kops and Kubernetes version compatibility.
DO NOT upgrade to a Kubernetes version unsuported by your Kops version
Check Kops Compatibility Matrix:
Manual upgrade (recommended)
If you don’t know yet, get your cluster’s name:
Let’s suppose your cluster name is my-cluster-name.
Export an environment variable with your cluster name:
Edit cluster’s config:
You cluster’s config will be opened in your text editor. Find and replace the config kubernetesVersion, for example:
From:
To:
Save and exit.
Preview changes:
Apply changes:
Preview update:
Roll update:
Automated update
Alternatively you can run Kops auto update:
Upgrade uses the latest Kubernetes version considered stable by kops, defined in https://github.com/kubernetes/kops/blob/master/channels/stable
References
https://github.com/kubernetes/kops/blob/master/docs/upgrade.md
Last updated