Cluster Configuration
In this example, we will use gcloud to simplify the creation of the said firewall rule.
Setup:
MASTER_IPV4_CIDR=$(gcloud container clusters describe $CLUSTER_NAME \
| grep "masterIpv4CidrBlock: " \
Get the cluster NETWORK
:
Get the cluster auto-generated NETWORK_TARGET_TAG
:
--filter network=$NETWORK --format json \
| jq ".[] | select(.name | contains(\"$CLUSTER_NAME\"))" \
| jq -r '.targetTags[0]' | head -1)
Verify the values:
Create the firewall rules for proxy-injector
and :
--network "$NETWORK" \
--allow "tcp:8443,tcp:8089" \
--source-ranges "$MASTER_IPV4_CIDR" \
--target-tags "$NETWORK_TARGET_TAG" \
--description "Allow traffic on ports 8443, 8089 for linkerd control-plane components"