From 6609858e6771d6f4256ca937b1aa152f05d8505c Mon Sep 17 00:00:00 2001 From: Abraham Ingersoll Date: Sun, 2 Jul 2017 10:26:48 -0500 Subject: [PATCH] Enable kubectl portfw on workers, fixes #78 --- docs/01-infrastructure-gcp.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/01-infrastructure-gcp.md b/docs/01-infrastructure-gcp.md index 66169b7..ffe0dfe 100644 --- a/docs/01-infrastructure-gcp.md +++ b/docs/01-infrastructure-gcp.md @@ -147,6 +147,8 @@ gcloud compute instances create controller2 \ #### Kubernetes Workers +Include socat depedency on worker VMs to enable kubelet's portfw functionality. + ``` gcloud compute instances create worker0 \ --boot-disk-size 200GB \ @@ -155,7 +157,11 @@ gcloud compute instances create worker0 \ --image-project ubuntu-os-cloud \ --machine-type n1-standard-1 \ --private-network-ip 10.240.0.20 \ - --subnet kubernetes + --subnet kubernetes \ + --metadata startup-script='#! /bin/bash +apt-get update +apt-get install -y socat +EOF' ``` ``` @@ -166,7 +172,11 @@ gcloud compute instances create worker1 \ --image-project ubuntu-os-cloud \ --machine-type n1-standard-1 \ --private-network-ip 10.240.0.21 \ - --subnet kubernetes + --subnet kubernetes \ + --metadata startup-script='#! /bin/bash +apt-get update +apt-get install -y socat +EOF' ``` ``` @@ -177,5 +187,9 @@ gcloud compute instances create worker2 \ --image-project ubuntu-os-cloud \ --machine-type n1-standard-1 \ --private-network-ip 10.240.0.22 \ - --subnet kubernetes + --subnet kubernetes \ + --metadata startup-script='#! /bin/bash +apt-get update +apt-get install -y socat +EOF' ```