|
本文档采用自动化机器翻译技术翻译。 尽管我们力求提供准确的译文,但不对翻译内容的完整性、准确性或可靠性作出任何保证。 若出现任何内容不一致情况,请以原始 英文 版本为准,且原始英文版本为权威文本。 |
Windows and BGP
Enabling BGP on Calico with Windows
To enable BGP mode for routing traffic with RKE2 using both Linux and Windows nodes, the Calico CNI should be selected in the Server configuration.
# /etc/rancher/rke2/config.yaml
cni: calico
Calico should then be configured with BGP enabled and encapsulation set to None.
# /var/lib/rancher/rke2/server/manifests/rke2-calico-config.yaml
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: rke2-calico
namespace: kube-system
spec:
valuesContent: |-
installation:
calicoNetwork:
bgp: Enabled
backend: "None"
Starting Windows node
Configure RKE2 on the Windows node as described here.
Before starting the RKE2 service, RemoteAccess must be enabled.
Install-WindowsFeature RemoteAccess
Install-WindowsFeature RSAT-RemoteAccess-PowerShell
Install-WindowsFeature Routing
This requires a reboot to function properly.
Next, configure the RemoteAccess service:
Install-RemoteAccess -VpnType RoutingOnly
To check if the RemoteAccess service has started properly, use the following command:
Start-Service RemoteAccess
After that, you can start the RKE2 service.