Welcome to the Linux Foundation Forum!

Mark hold kubernetes-cni?

Yesterday I attempted to do an apt upgrade (sudo apt update && sudo apt full-upgrade) on my kubernetes nodes, and I saw that the kubernetes-cni package is eligible for upgrade:

  1. ubuntu@k8s-master-1:~$ sudo apt full-upgrade
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. Calculating upgrade... Done
  6. The following packages have been kept back:
  7. kubeadm kubectl kubelet
  8. The following packages will be upgraded:
  9. kubernetes-cni
  10. 1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
  11. Need to get 25.0 MB of archives.
  12. After this operation, 0 B of additional disk space will be used.
  13. Do you want to continue? [Y/n] n
  14. Abort.

Should we also do a 'mark hold' on kubernetes-cni in addition to kubeadm, kubectl, and kubelet? Or is it safe to upgrade kubernetes-cni without upgrading the other kubernetes packages?

I am running Ubuntu 18.04 on my nodes:

  1. ubuntu@k8s-master-1:~$ cat /etc/os-release | head -n2
  2. NAME="Ubuntu"
  3. VERSION="18.04.5 LTS (Bionic Beaver)"

And kubernetes version 1.19.0:

  1. ubuntu@k8s-master-1:~$ sudo dpkg -l | grep kube
  2. hi kubeadm 1.19.0-00 amd64 Kubernetes Cluster Bootstrapping Tool
  3. hi kubectl 1.19.0-00 amd64 Kubernetes Command Line Tool
  4. hi kubelet 1.19.0-00 amd64 Kubernetes Node Agent
  5. ii kubernetes-cni 0.8.6-00 amd64 Kubernetes CNI

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Posts: 1,000

    Hello,

    The labs have not been tested with an upgrade to the kubernetes-cni package. While it should be compatible, the newer the update the less likely others have worked with the particular versions of software. So there is less of a "well worn path" to follow.

    You could run the labs first without the upgrade, then again after the upgrade and compare the difference. Let us know how that works out.

    Regards,

  • According to apt, It appears kubelet and kubeadm both require a kubernetes-cni version of 0.8.6 or later:

    1. ubuntu@k8s-master-1:~$ apt depends kubelet=1.19.0-00 kubectl=1.19.0-00 kubeadm=1.19.0-00
    2. kubelet
    3. Depends: iptables (>= 1.4.21)
    4. Depends: kubernetes-cni (>= 0.8.6)
    5. Depends: iproute2
    6. Depends: socat
    7. Depends: util-linux
    8. Depends: mount
    9. Depends: ebtables
    10. Depends: ethtool
    11. Depends: conntrack
    12. kubectl
    13. kubeadm
    14. Depends: kubelet (>= 1.13.0)
    15. Depends: kubectl (>= 1.13.0)
    16. Depends: kubernetes-cni (>= 0.8.6)
    17. Depends: cri-tools (>= 1.13.0)

    I took a chance and upgraded kubernetes-cni by doing the following on both my master and worker nodes:

    1. sudo apt update && sudo apt full-upgrade
    2. sudo systemctl daemon-reload
    3. sudo systemctl restart kubelet

    And now have:

    1. ubuntu@k8s-master-1:~$ sudo dpkg -l | grep kube
    2. hi kubeadm 1.19.0-00 amd64 Kubernetes Cluster Bootstrapping Tool
    3. hi kubectl 1.19.0-00 amd64 Kubernetes Command Line Tool
    4. hi kubelet 1.19.0-00 amd64 Kubernetes Node Agent
    5. ii kubernetes-cni 0.8.7-00 amd64 Kubernetes CNI

    I'm about to start Chapter 13. Custom Resource Definitions, so I'll see how things go.

  • Posts: 1,000

    Great! Thanks for the feedback!

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training