Skip to content

Commit

Permalink
fix issue on wrong DEB packaging on k8s
Browse files Browse the repository at this point in the history
This is a temporary fix that allow to build cluster until the issue

    kubernetes/kubernetes#69489

will fixed
  • Loading branch information
mavimo committed Oct 7, 2018
1 parent 8fad1b1 commit 9ad7ae6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/clustermanager/provision_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ad7ae6

Please sign in to comment.