mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 22:46:25 +00:00
Extend rke to tolerate the Windows host
1. Support to configure Flannel as "host-gw" backend 2. Define the network component yaml and ingress controller yaml only schedule to non-Windows node 3. Support to configure Docker container's port publishing
This commit is contained in:
@@ -190,6 +190,14 @@ func (c *Cluster) setClusterNetworkDefaults() {
|
||||
networkPluginConfigDefaultsMap = map[string]string{
|
||||
CalicoCloudProvider: DefaultNetworkCloudProvider,
|
||||
}
|
||||
case FlannelNetworkPlugin:
|
||||
networkPluginConfigDefaultsMap = map[string]string{
|
||||
FlannelBackendType: "vxlan",
|
||||
}
|
||||
case CanalNetworkPlugin:
|
||||
networkPluginConfigDefaultsMap = map[string]string{
|
||||
CanalFlannelBackendType: "vxlan",
|
||||
}
|
||||
}
|
||||
if c.Network.CalicoNetworkProvider != nil {
|
||||
setDefaultIfEmpty(&c.Network.CalicoNetworkProvider.CloudProvider, DefaultNetworkCloudProvider)
|
||||
@@ -197,6 +205,7 @@ func (c *Cluster) setClusterNetworkDefaults() {
|
||||
}
|
||||
if c.Network.FlannelNetworkProvider != nil {
|
||||
networkPluginConfigDefaultsMap[FlannelIface] = c.Network.FlannelNetworkProvider.Iface
|
||||
|
||||
}
|
||||
if c.Network.CanalNetworkProvider != nil {
|
||||
networkPluginConfigDefaultsMap[CanalIface] = c.Network.CanalNetworkProvider.Iface
|
||||
|
Reference in New Issue
Block a user