Hi I administer several kubernetes clusters, 4 total that run on Ubuntu 20.04 LTS and am trying to get a patching procedure together.
I want to patch each cluster of Ubuntu servers one at a time, two weeks apart.
I want to use this mini-string of commands to do so:
sudo -s -- <<EOF
apt-get update
apt-get upgrade -y
apt-get full-upgrade -y
apt-get autoremove -y
apt-get autoclean -y
EOF
What I really want to do is change the apt-get upgrade command to apt-get upgrade --download-only and do this on all the nodes in each cluster all at once.
Then when I'm ready to install these packages on each cluster it only installs what was downloaded. I understand to do that I have to use apt-get upgrade --no-download --ignore missing.
So my real question is how would that work if I want to use the apt-get full-upgrade command also? So these clusters are going to be patched 2 weeks apart how do I insure that they get
the exact same full-upgrades? Does it do the full-upgrade based on what was downloaded by the apt-get upgrade --download-only command?
Bookmarks