[ Kube 65.2 ] Kubespray - Upgrading K8S Cluster

preview_player
Показать описание
In this video I will show you how to use Kubespray to upgrade your Kubernetes cluster with multiple control planes. Kubespray uses Ansible for automating the provisioning tasks. You could use physical or virtual machines for this demo.
The nodes will be upgraded one by one and before upgrading a node, it will be cordoned and the pods will be evicted.

Kubespray:
My Github repo:

Learn Kubernetes Playlist:

Kubernetes Provisioning Playlist:

Hope you enjoyed this video. Please share it with your friends and don't forget to subscribe to my channel. For any questions/issues/feedback, please leave me a comment and I will get back to you at the earliest.

Thanks for watching this video.

If you wish to support me:

#kubespray #kubernetes #justmekubernetes #learnkubernetes
Рекомендации по теме
Комментарии
Автор

Good video, nice and clear.
I am on 11.9 and need to get to 15.3. From what I have read, I have to go to 12 then 13 then 14 then 15. That is a lot of files to config for each version of kubespray.

MHAB
Автор

Thank you for the video.
Can I use the same steps to update the patch version, and not the minor version? and what happens with certificates? Are new certificates generated for kubelets and other cluster elements when updating?

МаксКошевой-щб
Автор

How to renew kubespray Kubernetes Cluster certificate.I' getting Unable to connect to the server: x509: certificate has expired or is not yet valid: current time 2023-07-13T12:32:50Z is after 2023-07-12T10:37:48Z
this error while accessing Kubespray K8 cluster.

vaishalisuryawanshi-ev
Автор

Hi Venkat, I have 8 node cluster HA mode and i want to upgrade the same from 1.11 to 1.12 so i have one query if upgrade fails or something wrong happen with cluster do we have rollback option available for this as well through kubespray....

nitinnagpal
Автор

Hey, nice video, what about the kubespray versions you used (initial install and upgrade) Thx !

JeanBernard_douzieme
Автор

Hi Venkat, Thanks for the video . I have one query regarding update from v1.16 to v1.18. Though i could able to upgrade from v1.15 to v1.16 but not able to upgrade the same cluster to v1.18. I saw the file there is not entry for v1.18. Can you suggest what i need to do?

pawansolanki
Автор

If I could, give 5 like for your simplicity on explain

adonaiks
Автор

Hi Venkat, i have a question here, if for some reason ansible fails to upgrade any of the worker node or master node, would ansible playbook rollback to older version?

kasimshaik
Автор

Can we configure kubespray to manage existing cluster not deployed from kubespray. if i installed k8s using kubeadm, can i manage (add, delete, upgrade) using kubespray.

ravipacc
Автор

what happen to inside cluster certificate?

nimolluon
Автор

Hello congratulations for the video, I saw in the documentation that there is a safe upgrade and an insecure upgrade. What would that be in this case?
I also saw that in the documentation they pass a parameter -e


Example below:
ansible-playbook cluster.yml -i inventory/sample/hosts.ini -e kube_version=v1.19.7 -e upgrade_cluster_setup=true

claudiocesar
Автор

Hi, there are multiple errors coming to run the playbook, for example fatal: [localhost]: FAILED! => {"msg": "template error while templating string: expected token '=', got 'end of statement block'. String: {% set test %}It works{% endset %}{{ test == 'It works' }}"}

souravjha
Автор

How to renew certificate using kubespray
Please help

cruiserider
Автор

The k8s 1.24 is with containerd.
The snapshots subfolder got deleted hence Control plane master KubeScheduler is not coming up. Here is the msg. Any suggestion how to recover.
kube-scheduler: failed to create containerd container: failed to create prepare snapshot dir : stat no such file or directory Warning BackOff kubelet Back-off restarting failed container

premierde
Автор

Does any one have this error: 'dict object' has no attribute 'v1.20.4'.
I am on Ansible 2.9.6, python 3.8.5, k8s 1.19.4. Trying to run "ansible-playbook -i inventory/prod/hosts.yml -b upgrade-cluster.yml -e kube_version=v1.20.4 -K -v " gives me that error.

nhanlethanh
Автор

I honestly only use tools you talk about.

Sommyie