Install Calico Enterprise for Windows on RKE
Big picture
Install Calico Enterprise for Windows on Rancher Kubernetes Engine (RKE).
Before you begin
Supported networking
- BGP with no encapsulation
- VXLAN
Required
-
An RKE cluster provisioned with no network plugin
-
One or more Windows nodes that meet the requirements.
How to
The following steps will outline the installation of Calico Enterprise networking on the RKE cluster, then the installation of Calico Enterprise for Windows on the Windows nodes.
-
Install the Tigera Calico Enterprise operator and custom resource definitions.
kubectl create -f https://downloads.tigera.io/ee/v3.19.4/manifests/tigera-operator.yaml
-
Download the necessary Installation custom resources.
wget https://downloads.tigera.io/ee/v3.19.4/manifests/custom-resources.yaml
-
Update the
calicoNetwork
options, ensuring that the correct pod CIDR is set. (Rancher uses10.42.0.0/16
by default.) Below are sample installations for VXLAN and BGP networking using the default Rancher pod CIDR:VXLAN
apiVersion: operator.tigera.io/v1
kind: Installation
metadata:
name: default
spec:
# Configures Calico networking.
calicoNetwork:
bgp: Disabled
# Note: The ipPools section cannot be modified post-install.
ipPools:
- blockSize: 26
cidr: 10.42.0.0/16
encapsulation: VXLAN
natOutgoing: Enabled
nodeSelector: all()BGP
apiVersion: operator.tigera.io/v1
kind: Installation
metadata:
name: default
spec:
# Configures Calico networking.
calicoNetwork:
# Note: The ipPools section cannot be modified post-install.
ipPools:
- blockSize: 26
cidr: 10.42.0.0/16
encapsulation: None
natOutgoing: Enabled
nodeSelector: all()noteFor more information on configuration options available in this manifest, see the installation reference.
-
Apply the updated custom resources:
kubectl create -f custom-resources.yaml
-
Configure strict affinity:
kubectl patch ipamconfigurations default --type merge --patch='{"spec": {"strictAffinity": true}}'
-
Finally, install Calico Enterprise for Windows. For an operator installation, follow the operator guide. For manual installation, follow the quickstart guide. For VXLAN clusters, follow the instructions under the "Kubernetes VXLAN" tab. For BGP clusters, follow the instructions under the "Kubernetes BGP" tab.
noteFor Rancher default values for service CIDR and DNS cluster IP, see the Rancher kube-api service options.
-
Check the status of the nodes with
kubectl get nodes
. If you see that the Windows node has the statusReady
, then you have a Calico Enterprise for Windows on RKE cluster ready for Linux and Windows workloads!