k3s/pkg/agent/syssetup/setup.go

19 lines
346 B
Go
Raw Normal View History

2019-01-01 08:23:01 +00:00
package syssetup
import (
"io/ioutil"
"github.com/sirupsen/logrus"
)
var (
callIPTablesFile = "/proc/sys/net/bridge/bridge-nf-call-iptables"
)
func Configure() error {
if err := ioutil.WriteFile(callIPTablesFile, []byte("1"), 0640); err != nil {
logrus.Warnf("failed to write value 1 at %s: %v", callIPTablesFile, err)
}
return nil
}