File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,13 @@ function create-master-instance-with-resources {
102
102
--target-tags " ${MASTER_TAG} " \
103
103
--allow " tcp:443" &
104
104
105
+ run-gcloud-compute-with-retries firewall-rules create " ${MASTER_NAME} -internal" \
106
+ --project " ${PROJECT} " \
107
+ --network " ${NETWORK} " \
108
+ --source-ranges " 10.0.0.0/8" \
109
+ --target-tags " ${MASTER_TAG} " \
110
+ --allow " tcp:1-2379,tcp:2382-65535,udp:1-65535,icmp" &
111
+
105
112
wait
106
113
}
107
114
@@ -136,6 +143,10 @@ function delete-master-instance-and-resources {
136
143
--project " ${PROJECT} " \
137
144
--quiet || true
138
145
146
+ gcloud compute firewall-rules delete " ${MASTER_NAME} -internal" \
147
+ --project " ${PROJECT} " \
148
+ --quiet || true
149
+
139
150
if [ " ${SEPARATE_EVENT_MACHINE:- false} " == " true" ]; then
140
151
gcloud compute instances delete " ${EVENT_STORE_NAME} " \
141
152
" ${GCLOUD_COMMON_ARGS[@]} " || true
You can’t perform that action at this time.
0 commit comments