File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,10 @@ delete-gke-cluster: ## Delete the GKE cluster
166
166
add-local-ip-to-cluster : # # Add local IP to the GKE cluster master-authorized-networks
167
167
./scripts/add-local-ip-auth-networks.sh
168
168
169
+ .PHONY : update-firewall-with-local-ip
170
+ update-firewall-with-local-ip : # # Update the firewall rule with local IP address
171
+ ./scripts/update-firewall-with-local-ip.sh
172
+
169
173
HELM_PARAMETERS += --set nginxGateway.name=nginx-gateway --set nginx.service.type=ClusterIP --skip-schema-validation
170
174
171
175
# this target is used to install the gateway-api CRDs from the main branch (only used in the nightly CI job)
Original file line number Diff line number Diff line change @@ -91,6 +91,13 @@ make create-gke-cluster
91
91
make add-local-ip-to-cluster
92
92
```
93
93
94
+ > Note: If you already have a GKE cluster and your public IP has changed, update the firewall rule to include your new client IP.
95
+ > This restores connectivity when you’re unable to reach the VM.
96
+
97
+ ``` makefile
98
+ make update-firewall-with-local-ip
99
+ ```
100
+
94
101
### Step 2 - Build and Load Images
95
102
96
103
Loading the images only applies to a ` kind ` cluster. If using a cloud provider, you will need to tag and push
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -eo pipefail
4
+
5
+ source scripts/vars.env
6
+
7
+ gcloud compute firewall-rules update ${NETWORK_TAGS} --source-ranges ${SOURCE_IP_RANGE}
You can’t perform that action at this time.
0 commit comments