Handle IP Conflicts

The following are the default IP ranges used by SevOne Data Insight.


Flag Description IP Address IP Range
––cluster-cidr Pod IP addresses 192.168.80.0/20 192.168.80.0.0 - 192.168.95.255
––service-cidr Service IP addresses 192.168.96.0/20 192.168.96.0 - 192.168.111.255
––cluster-dns Cluster DNS (must be in Service's range) 192.168.96.10 n/a

Teardown Kubernetes

Warning: Whenever you teardown the cluster be sure to back up your data first.
  1. In order to change the default IP ranges, you must teardown your Kubernetes cluster.
    $ sevone-cli cluster down
  2. Ensure that the old IP address ranges are not left behind in any of your node’s routing tables.
    $ ansible all --become -a "ip route del 192.168.96.0/24"

Adjust IP Ranges

Create a file ip_ranges.yaml in /etc/ansible/group_vars/all directory with your new IP ranges.

Example

$ echo 'k3s_cluster_cidr: "10.42.0.0/16"' >> \
/etc/ansible/group_vars/all/ip_ranges.yaml

$ echo 'k3s_service_cidr: "10.43.0.0/16"' >> \
/etc/ansible/group_vars/all/ip_ranges.yaml

$ echo 'k3s_cluster_dns: "10.43.0.10"' >> \
/etc/ansible/group_vars/all/ip_ranges.yaml 

You may then redeploy or proceed with your deployment as normal.

$ sevone-cli playbook up