Downgrade kubeadm, kubelet, kubectl and kubernetes-cni
Until is solved, use
exact versions.
@@ -50,7 +50,15 @@ repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
-yum install -y docker kubelet-1.5.4 kubeadm kubectl kubernetes-cni
+yum install -y docker
+
+# Use hard coded versions until https://github.com/kubernetes/kubeadm/issues/212 is resolved.
+# Currently older versions of kubeadm are no longer available in the rpm repos.
+# See https://github.com/kubernetes/kubeadm/issues/220 for context.
+yum install -y http://yum.kubernetes.io/pool/082436e6e6cad1852864438b8f98ee6fa3b86b597554720b631876db39b8ef04-kubeadm-1.6.0-0.alpha.0.2074.a092d8e0f95f52.x86_64.rpm \
+ http://yum.kubernetes.io/pool/2e63c1f9436c6413a4ea0f45145b97c6dbf55e9bb2a251adc38db1292bbd6ed1-kubelet-1.5.4-0.x86_64.rpm \
+ http://yum.kubernetes.io/pool/fd9b1e2215cab6da7adc6e87e2710b91ecfda3b617edfe7e71c92277301a63ab-kubectl-1.5.4-0.x86_64.rpm \
+ http://yum.kubernetes.io/pool/0c923b191423caccc65c550ef07ce61b97f991ad54785dab70dc07a5763f4222-kubernetes-cni-0.3.0.1-0.07a8a2.x86_64.rpm
# To get the qemu user and libvirt
yum install -y qemu-common qemu-kvm qemu-system-x86 libcgroup-tools libvirt || :
