Скачать
[02.01.01] Draining a Worker Node during the Kubernetes Cluster Upgrade
Автор: ILoveOpenSourceSoftware
Загружено: 2024-12-30
Просмотров: 54
Описание:
In this video I am highlighting the drainage process of a worker node. In my previous video [02.01] I failed to execute that step which caused a failure of my database cluster. However, as I followed additional steps that were highlighted in some of the outputs, I was able to successfully drain the node during the upgrade of the worker node to version 1.31.4 and successfully have the database pod, which was evicted from this node during the process, restart. In this video I am showcasing these additional steps which are crucial to prevent additional troubleshooting steps and make the upgrade process much smoother.
0:00 Introduction & Purpose for this video
0:55 Setup
2:00 Identify pods to watch during the upgrade process
2:46 Initiate update process
3:22 Updating kubeadm
4:50 draining Kubernetes worker
6:20 Updating kubectl and kubelet
8:15 Reintegrating Kubernetes Worker Node into the Cluster
10:17 Summary
Sources:
Kubernetes documentation - kubernetes.io
Kubernetes upgrade path - https://v1-31.docs.kubernetes.io/docs...
Commands from the video:
On the Worker
3:24 sudo apt-mark unhold kubeadm
3:34 sudo apt-cache madison kubeadm
3:49 sudo apt install -y kubeadm='1.31.4*'
4:06 sudo apt-mark hold kubeadm
4:27 sudo kubeadm upgrade node
On the MASTER
5:08 kubectl drain k8s-worker1 --ignore-daemonsets
5:52 kubectl drain k8s-worker1 --ignore-daemonsets --delete-emptydir-data
On the Worker
6:34 sudo apt-mark unhold kubelet kubectl
6:58 sudo apt install -y kubelet='1.29.12-*' kubectl='1.29.12-*'
7:33 sudo apt-mark hold kubelet kubectl
7:49 sudo systemctl daemon-reload
7:58 sudo systemctl restart kubelet
From the MASTER
8:15 kubectl uncordon k8s-worker1
Развернуть
Доступные форматы для скачивания:
Похожие видео
array(10) {
[0]=>
object(stdClass)#6015 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "-70LOie9ZGg"
["related_video_title"]=>
string(54) "[07] Deploying a Load Balancer to a Kubernetes Cluster"
["posted_time"]=>
string(19) "1 год назад"
["channelName"]=>
string(23) "ILoveOpenSourceSoftware"
}
[1]=>
object(stdClass)#5988 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "8YjJNTJUdd0"
["related_video_title"]=>
string(68) "[11.01] Deploying the Backend for a Nextcloud Instance in Kubernetes"
["posted_time"]=>
string(19) "1 год назад"
["channelName"]=>
string(23) "ILoveOpenSourceSoftware"
}
[2]=>
object(stdClass)#6013 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "5oN4VctAfCk"
["related_video_title"]=>
string(115) "Преемники Путина | Почему они все растворились (English subtitles) @Max_Katz"
["posted_time"]=>
string(21) "1 день назад"
["channelName"]=>
string(19) "Максим Кац"
}
[3]=>
object(stdClass)#6020 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "FxDtA3sWcbI"
["related_video_title"]=>
string(48) "Server Name Indication (SNI) - The Final Episode"
["posted_time"]=>
string(22) "11 дней назад"
["channelName"]=>
string(10) "thinkvatsa"
}
[4]=>
object(stdClass)#5999 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "KfgtZE4dVoQ"
["related_video_title"]=>
string(181) "ЛЕВИЕВ: "Вот что будет в ближайшие дни, а это – в ближайшие месяцы". Куда пойдет Путин, война с НАТО"
["posted_time"]=>
string(24) "15 часов назад"
["channelName"]=>
string(24) "И Грянул Грэм"
}
[5]=>
object(stdClass)#6017 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "RnHC1XiNWS8"
["related_video_title"]=>
string(94) "Венедиктов – страх, Симоньян, компромиссы / вДудь"
["posted_time"]=>
string(19) "2 дня назад"
["channelName"]=>
string(10) "вДудь"
}
[6]=>
object(stdClass)#6012 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "lxM452KvFD8"
["related_video_title"]=>
string(47) "Третий Стамбул срывается?"
["posted_time"]=>
string(21) "3 часа назад"
["channelName"]=>
string(27) "Анатолий Шарий"
}
[7]=>
object(stdClass)#6022 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "3348H0dPUlA"
["related_video_title"]=>
string(110) "Правительство создает реестр всех телефонов для блокировок"
["posted_time"]=>
string(24) "16 часов назад"
["channelName"]=>
string(25) "Бондаренко LIVE"
}
[8]=>
object(stdClass)#5998 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "-PPjKKC89YU"
["related_video_title"]=>
string(71) "Начало большой войны / США бьют тревогу"
["posted_time"]=>
string(23) "6 часов назад"
["channelName"]=>
string(10) "NEXTA Live"
}
[9]=>
object(stdClass)#6016 (5) {
["video_id"]=>
int(9999999)
["related_video_id"]=>
string(11) "MN6b3gPmWng"
["related_video_title"]=>
string(121) "⚡️ Путин отдал немедленный приказ || Москва требует Киев и Одессу"
["posted_time"]=>
string(24) "17 часов назад"
["channelName"]=>
string(23) "Время Прядко"
}
}
[07] Deploying a Load Balancer to a Kubernetes Cluster
[11.01] Deploying the Backend for a Nextcloud Instance in Kubernetes
Преемники Путина | Почему они все растворились (English subtitles) @Max_Katz
Server Name Indication (SNI) - The Final Episode
ЛЕВИЕВ: "Вот что будет в ближайшие дни, а это – в ближайшие месяцы". Куда пойдет Путин, война с НАТО
Венедиктов – страх, Симоньян, компромиссы / вДудь
Третий Стамбул срывается?
Правительство создает реестр всех телефонов для блокировок
Начало большой войны / США бьют тревогу
⚡️ Путин отдал немедленный приказ || Москва требует Киев и Одессу