diff --git a/pkg/clustermanager/provision_node.go b/pkg/clustermanager/provision_node.go index 39f245f7..dbd328f8 100644 --- a/pkg/clustermanager/provision_node.go +++ b/pkg/clustermanager/provision_node.go @@ -147,6 +147,17 @@ Pin-Priority: 1000 return err } + // docker-ce + aptPreferencesKubernetes := ` +Package: kubernetes-cni +Pin: version 0.6.0-00* +Pin-Priority: 900 + ` + err = provisioner.communicator.WriteFile(provisioner.node, "/etc/apt/preferences.d/k8s.pref", aptPreferencesKubernetes, false) + if err != nil { + return err + } + _, err = provisioner.communicator.RunCmd(provisioner.node, "curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -") if err != nil { return err