Created
October 19, 2023 21:01
-
-
Save chadmcrowell/066c64624e2d899f62869896d2088555 to your computer and use it in GitHub Desktop.
Dallas Kubernetes Workshop - Upgrade K8s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# perform the command from this lab environment: | |
# https://studyk8s.club/cka-upgrade-k8s | |
# plan the upgrade | |
kubeadm upgrade plan | |
# upgrade the version of kubeadm | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates curl gpg | |
mkdir -p /etc/apt/keyrings/ | |
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg | |
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list | |
sudo apt-get update | |
sudo apt-get install -y kubeadm=1.28.3-1.1 | |
# apply and upgrade the control plane components | |
kubeadm upgrade apply v1.28.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment