Shell scripts to deploy and upgrade Kubernetes clusters on Ubuntu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
348 B

if [ ${K8S_VERSION_CURRENT:-v0.0.0} = ${K8S_VERSION_LATEST#v} ];
echo nothing to do
exit 0
sudo apt install -y kubeadm=${K8S_VERSION_LATEST#v}-00
sudo kubeadm upgrade apply -y ${K8S_VERSION_LATEST}
sudo apt install -y kube{let,ctl}=${K8S_VERSION_LATEST#v}-00
sudo apt autoremove -y
sudo apt autoclean
sudo journalctl --vacuum-time=3d