Commit db838b07 authored by Darren Shepherd's avatar Darren Shepherd

Make node IP configurable

parent 269d9f02
...@@ -17,6 +17,7 @@ type AgentConfig struct { ...@@ -17,6 +17,7 @@ type AgentConfig struct {
NodeName string NodeName string
ClusterCIDR net.IPNet ClusterCIDR net.IPNet
KubeConfig string KubeConfig string
NodeIP string
RuntimeSocket string RuntimeSocket string
ListenAddress string ListenAddress string
CACertPath string CACertPath string
...@@ -74,6 +75,7 @@ func kubelet(config *AgentConfig) { ...@@ -74,6 +75,7 @@ func kubelet(config *AgentConfig) {
"--eviction-hard", "imagefs.available<5%,nodefs.available<5%", "--eviction-hard", "imagefs.available<5%,nodefs.available<5%",
"--eviction-minimum-reclaim", "imagefs.available=10%,nodefs.available=10%", "--eviction-minimum-reclaim", "imagefs.available=10%,nodefs.available=10%",
"--feature-gates=MountPropagation=true", "--feature-gates=MountPropagation=true",
"--node-ip", config.NodeIP,
"--fail-swap-on=false", "--fail-swap-on=false",
"--cgroup-root", "/k3s", "--cgroup-root", "/k3s",
"--cgroup-driver", "cgroupfs", "--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