File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,8 @@ gcloud compute instances create controller2 \
147
147
148
148
#### Kubernetes Workers
149
149
150
+ Include socat depedency on worker VMs to enable kubelet's portfw functionality.
151
+
150
152
```
151
153
gcloud compute instances create worker0 \
152
154
--boot-disk-size 200GB \
@@ -155,7 +157,11 @@ gcloud compute instances create worker0 \
155
157
--image-project ubuntu-os-cloud \
156
158
--machine-type n1-standard-1 \
157
159
--private-network-ip 10.240.0.20 \
158
- --subnet kubernetes
160
+ --subnet kubernetes \
161
+ --metadata startup-script='#! /bin/bash
162
+ apt-get update
163
+ apt-get install -y socat
164
+ EOF'
159
165
```
160
166
161
167
```
@@ -166,7 +172,11 @@ gcloud compute instances create worker1 \
166
172
--image-project ubuntu-os-cloud \
167
173
--machine-type n1-standard-1 \
168
174
--private-network-ip 10.240.0.21 \
169
- --subnet kubernetes
175
+ --subnet kubernetes \
176
+ --metadata startup-script='#! /bin/bash
177
+ apt-get update
178
+ apt-get install -y socat
179
+ EOF'
170
180
```
171
181
172
182
```
@@ -177,5 +187,9 @@ gcloud compute instances create worker2 \
177
187
--image-project ubuntu-os-cloud \
178
188
--machine-type n1-standard-1 \
179
189
--private-network-ip 10.240.0.22 \
180
- --subnet kubernetes
190
+ --subnet kubernetes \
191
+ --metadata startup-script='#! /bin/bash
192
+ apt-get update
193
+ apt-get install -y socat
194
+ EOF'
181
195
```
You can’t perform that action at this time.
0 commit comments