Microk8s private IP range conflict with Cisco VPN

I’m running microk8s on a workstation (Ubuntu 18.04.2 LTS). After I “snap install microk8s” and start microk8s, I see there is a network interface “cni0” created with associated IP range 10.1.51.0/24. The “route -n” output is

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
<some other entries omitted>
10.1.51.0       0.0.0.0         255.255.255.0   U     0      0        0 cni0
<some other entries omitted>

I also need to connect to company VPN with Cisco AnyConnect Secure Mobility Client. After I start microk8s, the VPN client starts to reconnect again and again. Normally, when the VPN client is connected, the 10.0.0.0/8 IP range would be redirected to the VPN. The “route -n” output would look like

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
<some other entries omitted>
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 cscotun0
<some other entries omitted>

Is there a way that I configure microk8s to use a different IP range to avoid the conflict? Thanks a lot!

Hi @haosong can you try the changes suggested in https://github.com/ubuntu/microk8s/issues/276#issuecomment-687663776

Thanks a lot, @kjackal! I’ll give it a try.

Thanks for your pointers earlier, @kjackal! But I still have some issues after trying those changes, could you take a look at my comment in https://github.com/ubuntu/microk8s/issues/276#issuecomment-689918123 ? Thanks a lot!