Pin kubectl to the installed kubernetes version.
During devstack deployment it can happen, that changing desired version
of the kubernetes, kubectl will be intalled with different version. This
patch make sure, that all of the installed kubernetes components are
coherent.
Closes-Bug:
@@ -24,10 +24,11 @@ distribution.")
REPOS_UPDATED=False apt_get_update
# NOTE(gryf): kubectl will be installed alongside with the kubeadm as
- # a dependency
+ # a dependency, although let's pin it to the k8s version as well.
apt_get install \
kubelet="${KURYR_KUBERNETES_VERSION}-00" \
- kubeadm="${KURYR_KUBERNETES_VERSION}-00"
+ kubeadm="${KURYR_KUBERNETES_VERSION}-00" \
+ kubectl="${KURYR_KUBERNETES_VERSION}-00"
sudo apt-mark hold kubelet kubeadm kubectl
# NOTE(hongbin): This work-around an issue that kubelet pick a wrong
# IP address if the node has multiple network interfaces.
