Commit db838b07 authored by Darren Shepherd's avatar Darren Shepherd

Make node IP configurable

parent 269d9f02
......@@ -17,6 +17,7 @@ type AgentConfig struct {
NodeName string
ClusterCIDR net.IPNet
KubeConfig string
NodeIP string
RuntimeSocket string
ListenAddress string
CACertPath string
......@@ -74,6 +75,7 @@ func kubelet(config *AgentConfig) {
"--eviction-hard", "imagefs.available<5%,nodefs.available<5%",
"--eviction-minimum-reclaim", "imagefs.available=10%,nodefs.available=10%",
"--feature-gates=MountPropagation=true",
"--node-ip", config.NodeIP,
"--fail-swap-on=false",
"--cgroup-root", "/k3s",
"--cgroup-driver", "cgroupfs",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment