|
|
|
@ -348,6 +348,9 @@ func get(envInfo *cmds.Agent) (*config.Node, error) {
|
|
|
|
|
nodeConfig.AgentConfig.KubeConfigNode = kubeconfigNode |
|
|
|
|
nodeConfig.AgentConfig.KubeConfigKubelet = kubeconfigKubelet |
|
|
|
|
nodeConfig.AgentConfig.KubeConfigKubeProxy = kubeconfigKubeproxy |
|
|
|
|
if envInfo.Rootless { |
|
|
|
|
nodeConfig.AgentConfig.RootDir = filepath.Join(envInfo.DataDir, "kubelet") |
|
|
|
|
} |
|
|
|
|
nodeConfig.AgentConfig.PauseImage = envInfo.PauseImage |
|
|
|
|
nodeConfig.AgentConfig.IPSECPSK = controlConfig.IPSECPSK |
|
|
|
|
nodeConfig.AgentConfig.StrongSwanDir = filepath.Join(envInfo.DataDir, "strongswan") |
|
|
|
@ -400,6 +403,7 @@ func get(envInfo *cmds.Agent) (*config.Node, error) {
|
|
|
|
|
nodeConfig.AgentConfig.PrivateRegistry = envInfo.PrivateRegistry |
|
|
|
|
nodeConfig.AgentConfig.DisableCCM = controlConfig.DisableCCM |
|
|
|
|
nodeConfig.AgentConfig.DisableNPC = controlConfig.DisableNPC |
|
|
|
|
nodeConfig.AgentConfig.Rootless = envInfo.Rootless |
|
|
|
|
|
|
|
|
|
return nodeConfig, nil |
|
|
|
|
} |
|
|
|
|