Change Flannel network

Hi,

Is it possible tochange the default 10.42 network of flannel when creating a cluster within rke (in the add cluster / custom functionnality) ?

Thx,

Ludovic

Hi Ludovic,

Yes, I just tested it in my project.
For example for a network on 10.244.0.0/16, in cluster.yml rke file :

...
    kube-api:
      ...
      service_cluster_ip_range: 10.244.64.0/18
      ...
    kube-controller:
      ...
      cluster_cidr: 10.244.0.0/16
      service_cluster_ip_range: 10.244.64.0/18
      ...
    kubelet:
      ...
      cluster_dns_server: 10.244.64.10
      ...

service_cluster_ip_range value is the same for both pods.
cluster_dns_server: 10.244.64.10 is an arbitrary choice.

Do not forget to clean the data on the etcd before deployment

Regards
Arnaud

1 Like

Thanks Arnaud :slight_smile: