From 173168ca867538ce4a1901ee4ad4565c4dff9e3a Mon Sep 17 00:00:00 2001 From: abdosi <58047199+abdosi@users.noreply.github.com> Date: Thu, 18 Jun 2020 23:16:00 -0700 Subject: [PATCH] kubeadm package apt-get install has unmet dependency error (#4804) to other packages so intsalling them explicitly. --- build_debian.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build_debian.sh b/build_debian.sh index d83092dba66e..82626103e21e 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -217,6 +217,14 @@ then ## Check out the sources list update matches current Debian version sudo cp files/image_config/kubernetes/kubernetes.list $FILESYSTEM_ROOT/etc/apt/sources.list.d/ sudo LANG=C chroot $FILESYSTEM_ROOT apt-get update + if [[ $KUBERNETES_VERSION == 1.18.0 ]]; then + # kubeadm 1.18.0 package auto install has some dependency error so install + # those package explicitly. + sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install kubernetes-cni=0.7.5-00 + sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install kubelet=1.18.3-00 + sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install kubectl=1.18.3-00 + fi + # else kubeadm package auto install kubelet & kubectl sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install kubeadm=${KUBERNETES_VERSION}-00 # kubeadm package auto install kubelet & kubectl else