Install ethtool in nodeup

Issue #1830
This commit is contained in:
Justin Santa Barbara 2017-02-11 16:16:09 -05:00
parent bc6cbda8fd
commit 75447f8b44
1 changed files with 5 additions and 1 deletions

View File

@ -30,11 +30,15 @@ type PackagesBuilder struct {
var _ fi.ModelBuilder = &DockerBuilder{}
func (b *PackagesBuilder) Build(c *fi.ModelBuilderContext) error {
// kubelet needs ebtables - kops #1711
// kubelet needs:
// ebtables - kops #1711
// ethtool - kops #1830
if b.Distribution.IsDebianFamily() {
c.AddTask(&nodetasks.Package{Name: "ebtables"})
c.AddTask(&nodetasks.Package{Name: "ethtool"})
} else if b.Distribution.IsRHELFamily() {
c.AddTask(&nodetasks.Package{Name: "ebtables"})
c.AddTask(&nodetasks.Package{Name: "ethtool"})
} else {
// Hopefully it's already installed
glog.Infof("ebtables package not known for distro %q", b.Distribution)