summaryrefslogtreecommitdiff
path: root/networking.md
diff options
context:
space:
mode:
authorJoe Beda <joe.github@bedafamily.com>2014-11-25 10:32:27 -0800
committerJoe Beda <joe.github@bedafamily.com>2014-11-25 15:17:00 -0800
commitcc78c66a925dd4d35a683ffb50348403f5c2de06 (patch)
treee8244b15e8c2d971f3b275d687b140502f9ba0db /networking.md
parentd5bbcd262cf01b76475426aa0100f012f7471cc0 (diff)
Convert gcutil to gcloud compute
Diffstat (limited to 'networking.md')
-rw-r--r--networking.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/networking.md b/networking.md
index 167b7382..3f52d388 100644
--- a/networking.md
+++ b/networking.md
@@ -40,11 +40,12 @@ We set up this bridge on each node with SaltStack, in [container_bridge.py](clus
We make these addresses routable in GCE:
- gcutil addroute ${MINION_NAMES[$i]} ${MINION_IP_RANGES[$i]} \
- --norespect_terminal_width \
- --project ${PROJECT} \
- --network ${NETWORK} \
- --next_hop_instance ${ZONE}/instances/${MINION_NAMES[$i]} &
+ gcloud compute routes add "${MINION_NAMES[$i]}" \
+ --project "${PROJECT}" \
+ --destination-range "${MINION_IP_RANGES[$i]}" \
+ --network "${NETWORK}" \
+ --next-hop-instance "${MINION_NAMES[$i]}" \
+ --next-hop-instance-zone "${ZONE}" &
The minion IP ranges are /24s in the 10-dot space.