Jump to content

Kubernetes: Difference between revisions

548 bytes added ,  8 February 2022
Line 93: Line 93:
    
    
# Setup calico networking
# Setup calico networking
kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
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