https://rancher.com/ logo
Title
c

clever-salesmen-71802

03/31/2023, 5:12 AM
Is it possible to change the
cluster-cidr
of an existing cluster? I have a cluster created with --cluster-cidr=192.168.0.0/16 but due to some conflicts I want it to be --cluster-cidr=172.16.0.0/16 but that makes the k3s service to restart frequently due to a panic:
Mar 31 05:04:34 my-node k3s[1059813]: panic: F0331 05:04:34.864500 1059813 controllermanager.go:222] error starting controllers: failed to mark cidr[192.168.0.0/24] at idx [0] as occupied for node: my-node: cidr 192.168.0.0/24 is out the range of cluster cidr 172.16.0.0/16
c

creamy-pencil-82913

03/31/2023, 7:22 AM
No, you effectively cannot change the cidrs after the cluster has been started. You should build a new cluster.