Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
kubeadm 1.8 upgrade notes from TGIK
# Get the latest version of kubeadm. Note that you don't want to use the one
# provided by your package manager as that may upgrade your kubelet before you
# upload your controlplane.
export VERSION=$(curl -sSL https://dl.k8s.io/release/stable.txt)
export ARCH=amd64
curl -sSL https://dl.k8s.io/release/${VERSION}/bin/linux/${ARCH}/kubeadm > kubeadm
sudo install -o root -g root -m 0755 ./kubeadm /usr/bin/kubeadm
sudo kubeadm upgrade plan
# oh noes! We need to capture the params from `kubeadm init`
# copy/paste stuff from /tmp/setup-k8s-master.sh to recreate kubeadm.yaml
sudo kubeadm upgrade apply v1.8.0
# install updated version of kubelet
export VERSION=$(curl -sSL https://dl.k8s.io/release/stable.txt)
export ARCH=amd64
curl -sSL https://dl.k8s.io/release/${VERSION}/bin/linux/${ARCH}/kubelet > kubelet
sudo install -o root -g root -m 0755 ./kubelet /usr/bin/kubelet
sudo systemctl restart kubelet.service
# now do this for the other nodes
# upgrade kubectl on your machines
curl -sSL https://dl.k8s.io/release/${VERSION}/bin/linux/${ARCH}/kubectl > kubectl
sudo install -o root -g root -m 0755 ./kubectl /usr/bin/kubectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment