Skip to content

Commit 96d6273

Browse files
committed
Use custom network in us-west1 with --enable-ula-internal-ipv6 for the VPC
1 parent d4082d5 commit 96d6273

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/nfr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ jobs:
120120
echo "NGINX_PREFIX=ghcr.io/nginx/nginx-gateway-fabric/nginx" >> vars.env
121121
echo "NGINX_PLUS_PREFIX=us-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/nginx-gateway-fabric/nginx-plus" >> vars.env
122122
echo "GKE_CLUSTER_NAME=nfr-tests-${{ github.run_id }}-${{ matrix.type }}" >> vars.env
123-
echo "GKE_CLUSTER_ZONE=europe-west1-b" >> vars.env
124-
echo "GKE_CLUSTER_REGION=europe-west1" >> vars.env
123+
echo "GKE_CLUSTER_ZONE=us-west1-b" >> vars.env
124+
echo "GKE_CLUSTER_REGION=us-west1" >> vars.env
125125
echo "GKE_PROJECT=${{ secrets.GCP_PROJECT_ID }}" >> vars.env
126126
echo "GKE_SVC_ACCOUNT=${{ secrets.GCP_SERVICE_ACCOUNT }}" >> vars.env
127127
echo "GKE_NODES_SERVICE_ACCOUNT=${{ secrets.GKE_NODES_SERVICE_ACCOUNT }}" >> vars.env

tests/scripts/create-and-setup-gcp-vm.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,16 @@ source scripts/vars.env
1616
# For IPv6, we create a dual-stack subnet with internal IPv6 addresses and external IPv4 addresses
1717
if [ "${IPV6_ENABLED}" = "true" ]; then
1818
echo "Using IPv6 Network interface for the GKE cluster"
19+
# gcloud compute networks create ${RESOURCE_NAME} --subnet-mode=custom --enable-ula-internal-ipv6 --quiet # The --subnet-mode=custom flag allows us to create custom subnets
1920

20-
NETWORK="v4-v6"
21+
# gcloud compute networks subnets create ${RESOURCE_NAME} \
22+
# --network=${RESOURCE_NAME} \
23+
# --stack-type=IPV4_IPV6 \
24+
# --ipv6-access-type=INTERNAL \
25+
# --region=${GKE_CLUSTER_REGION} \
26+
# --range=10.120.0.0/14
27+
28+
NETWORK="us-ipv4-ipv6"
2129
NETWORK_TIER="ipv6-network-tier=PREMIUM"
2230
STACK_TYPE="IPV4_IPV6"
2331
fi

0 commit comments

Comments
 (0)