This message was deleted.
# rke2
a
This message was deleted.
m
What CNI are you using? Flannel? Calico?
a
@mammoth-memory-36508 I’m using calico (rke2 default)
m
To change the CIDR you'll need to make a new IPPool, turn off the old one, and restart all your pods.
Unfortunately, picking the CIDR block size is an issue I've also had with RKE2 deployments if done through helm, although you can choose it when creating from the UI for example.
a
to be concrete, i’m using canal
m
Ah, then it's Flannel really handling this portion. I unfortunately have not used Flannel.
a
okay but currently i’ve an existing rke2 cluster, created with rke2 defaults and only one thing i changed for canal (to change the networking to use my private vlan and custom MTU):
Copy code
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
  name: rke2-canal
  namespace: kube-system
spec:
  valuesContent: |-
    flannel:
      iface: "vlan0"
    calico:
      vethuMTU: 1350
okay so you also don’t know how i could change this setting? 🙂
the docs is for dual stack config (which i don’t have) but the config seems interesting
m
In Calico, it uses a CRD so you modify the IPPool CRD. It also as a HelmChart, you can modify that helm chart with values pre-provisonoing and it'll apply it. If Flannel is Helm installed (looks like it is), maybe a helm list -Aa and find the Flannel installation and update the values there.
a
thanks @mammoth-memory-36508 I think i might have found the root cause for this problem. Check it here: https://github.com/longhorn/longhorn/discussions/6605