minikube-lb-patch
minikube-lb-patch copied to clipboard
Dropped out word "gw"
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 |