How To Change calicoIpIpMode to Never in Existing PMK Cluster
Problem
How to change calicoIpIpMode to Never in an existing PMK cluster?
Environment
Platform9 Managed Kubernetes - v5.2 and Higher
Calico CNI
Procedure
For example, consider a single master node Calico CNI cluster created with calicoIpIpMode as Always.
# cat /etc/pf9/kube.env | grep -i "CALICO_IPIP_MODE"
export CALICO_IPIP_MODE="Always"Reference: How-To Run Calicoctl Commands
# /opt/pf9/pf9-kube/bin/calicoctl get ippools default-ipv4-ippool
NAME CIDR SELECTOR
default-ipv4-ippool 10.20.0.0/16 all()# /opt/pf9/pf9-kube/bin/calicoctl get ippools default-ipv4-ippool --export -o yaml > default-ipv4-ippool.yaml# cat default-ipv4-ippool.yaml
apiVersion: projectcalico.org/v3
kind: IPPool
metadata:
creationTimestamp: null
name: default-ipv4-ippool
spec:
blockSize: 26
cidr: 10.20.0.0/16
ipipMode: Always
natOutgoing: true
nodeSelector: all()
vxlanMode: NeverChange the ipipMode from Always to Never & apply the change. Once this is done, the change will get updated on the routing table of all nodes part of the cluster.
PreviousHow to Allow Unsafe Sysctls on a PMK Cluster
NextHow are SSL Certificates Rotated in the Platform9 Managed Kubernetes Stack
Last updated
