Skip to content

Commit

Permalink
Merge pull request jupyterhub#793 from yuvipanda/fix-podCIDR
Browse files Browse the repository at this point in the history
Dynamically retrieve podCIDR for routing in CONTRIBUTING
  • Loading branch information
yuvipanda authored Oct 5, 2023
2 parents 8319b79 + fef713b commit 6d9d9a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ rules on your computer. We will now walk you through the steps to get going:

```bash
# Linux
sudo ip route add 172.17.0.0/16 via $(minikube ip)
sudo ip route add $(kubectl get node minikube -o jsonpath="{.spec.podCIDR}") via $(minikube ip)
# later on you can undo this with
sudo ip route del 172.17.0.0/16
sudo ip route del $(kubectl get node minikube -o jsonpath="{.spec.podCIDR}")

# MACOS
sudo route -n add -net 172.17.0.0/16 $(minikube ip)
sudo route -n add -net $(kubectl get node minikube -o jsonpath="{.spec.podCIDR}") $(minikube ip)
# later on you can undo this with
sudo route delete -net 172.17.0.0
sudo route delete -net $(kubectl get node minikube -o jsonpath="{.spec.podCIDR}")
```

### Troubleshooting
Expand Down

0 comments on commit 6d9d9a3

Please sign in to comment.