I have been in DevOps related jobs for past 6 years dealing mainly with Kubernetes in AWS and on-premise as well. I spent quite a lot …
:date_long | 1 min Read
CKS upgrade kubernetes
major minor patch
1 . 24 . 0
Upgrade Master Node procedure
- drain and cordon (make it unschedulable) node
- kubeadm
- kube-apiserver
- controller-manager
- scheduler
then:
- kubelet (can be -2 minor version behind kube-apiserver)
- kube-proxy
Components same minor version as kube-apiserver
Upgrade Node procedure
- Safely evicts all pods from node
kubectl drain
Mark node as SchedulingDisabled
kubectl cordon
Do the upgrade procedure …
Unmark node as SchedulingDisabled
kubectl uncordon
Notice
- pod
gracePeriod
/ Terminating state - pod
Lifecycle
Events PodDisruptionBudget