Provide ability to set lo up without CNI

Signed-off-by: Michael Zappa <michael.zappa@gmail.com>
This commit is contained in:
Michael Zappa
2024-05-16 09:31:38 -06:00
parent a673c3452a
commit 332caf1a15
9 changed files with 107 additions and 8 deletions

View File

@@ -185,6 +185,8 @@ type CniConfig struct {
// * ipv6 - select the first ipv6 address
// * cni - use the order returned by the CNI plugins, returning the first IP address from the results
IPPreference string `toml:"ip_pref" json:"ipPref"`
// UseInternalLoopback specifies if we use the CNI loopback plugin or internal mechanism to set lo to up
UseInternalLoopback bool `toml:"use_internal_loopback" json:"useInternalLoopback"`
}
// Mirror contains the config related to the registry mirror

View File

@@ -77,6 +77,7 @@ func DefaultRuntimeConfig() RuntimeConfig {
NetworkPluginMaxConfNum: 1, // only one CNI plugin config file will be loaded
NetworkPluginSetupSerially: false,
NetworkPluginConfTemplate: "",
UseInternalLoopback: false,
},
ContainerdConfig: ContainerdConfig{
DefaultRuntimeName: "runc",

View File

@@ -47,6 +47,7 @@ func DefaultRuntimeConfig() RuntimeConfig {
NetworkPluginMaxConfNum: 1,
NetworkPluginSetupSerially: false,
NetworkPluginConfTemplate: "",
UseInternalLoopback: false,
},
ContainerdConfig: ContainerdConfig{
DefaultRuntimeName: "runhcs-wcow-process",