elsonrodriguez / minikube-lb-patch

27 stars 3 forks source link

Dropped out word "gw" #3

Open Ais8Ooz8 opened 5 years ago

Ais8Ooz8 commented 5 years ago

From README.md:

sudo route -n add -net $(cat ~/.minikube/profiles/minikube/config.json | jq -r ".KubernetesConfig.ServiceCIDR") $(minikube ip)

You will get SIOCADDRT: No such device


Should be:

sudo route add -net $(cat ~/.minikube/profiles/minikube/config.json | jq -r ".KubernetesConfig.ServiceCIDR") gw $(minikube ip)

or

sudo ip route add $(cat ~/.minikube/profiles/minikube/config.json | jq -r ".KubernetesConfig.ServiceCIDR") via $(minikube ip)

The syntax difference is something like this:

route ip
route add -net 192.168.0.0/16 gw 10.0.0.1 ip route add 172.16.10.0/24 via 192.168.1.1
route add -net 192.168.0.0/16 dev eth1 ip route add 172.16.10.0/24 dev eth0