Upgrading Kops Clusters

Upgrading kops

To upgrade the kops release, there are a couple of options. First check to see if there a new release of geodesic with an upgraded version of kops. If there is one and this is the desired release, update the FROM image tag in the geodesic module to point to this release.

To explictly upgrade kops, add this to the Dockerfile.

RUN make -C /packages/install kops KOPS_VERSION=1.9.0

Find the latest release of kops here.

Then follow the instructions for upgrading kubernetes.

Upgrading Kubernetes Release

Upgrading kops cluster to a new release of kubernetes requires that we upgrade the kubectl client as well as select a kubernetes release that is compatible with kops.

To explictly upgrade kubectl, add this to the Dockerfile

RUN make -C /packages/install kubectl KUBECTL_VERSION=1.10.0

The kubectl release version corresponds to the kubernetes release. Find the latest release of kubernetes here.

Then follow the official instructions for upgrading kops.

Set the KUBERNETES_VERSION in the Dockerfile

Then follow the instructions to update the manifest and update the cluster.

Upgrading EC2 Image for Nodes

Identify the AMI that should be used by following the official documentation.

The AMI will look something like this:


Set the KOPS_BASE_IMAGE to the latest release AMI in the Geodesic Module’s Dockerfile and rebuild the container.

Then rebuild the manifest and update the cluster

Update manifest

The build-manifest command will regenerate the /conf/kops/manifest.yaml.

Run kops replace -f /conf/kops/manifest.yaml to update the kops state.

Then run kops update cluster --yes to apply the changes.

Some changes will require rebuilding the nodes (for example, resizing nodes or changing the AMI). To do this, you’ll need to run:

kops rolling-update cluster --yes

Upgrading a Cluster

Increase node size Rebuild Cluster