5,322
edits
Line 93: | Line 93: | ||
# Setup calico networking | # Setup calico networking | ||
kubectl | kubectl create -f https://projectcalico.docs.tigera.io/manifests/tigera-operator.yaml | ||
kubectl create -f -<<EOF | |||
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.0.0.0/16 | |||
encapsulation: VXLANCrossSubnet | |||
natOutgoing: Enabled | |||
nodeSelector: all() | |||
nodeAddressAutodetectionV4: | |||
canReach: "192.168.1.1" | |||
--- | |||
apiVersion: operator.tigera.io/v1 | |||
kind: APIServer | |||
metadata: | |||
name: default | |||
spec: {} | |||
EOF | |||
# (Optional) Remove taint on control-node to allow job scheduling | # (Optional) Remove taint on control-node to allow job scheduling |