Merge branch 'master' into nginx-reverse-proxy-cluster

This commit is contained in:
Taneli Leppä 2022-10-04 15:39:09 +02:00 committed by GitHub
commit b65beef20d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -28,11 +28,11 @@ bootcmd:
runcmd:
- iptables --policy FORWARD ACCEPT
%{if enable_health_checks ~}
%{ for interface in network_interfaces ~}
%{ if enable_health_checks ~}
- /var/run/nva/policy_based_routing.sh ${interface.name}
%{ endif ~}
%{ for route in interface.routes ~}
- ip route add ${route} via `curl http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/${interface.number}/gateway -H "Metadata-Flavor:Google"` dev ${interface.name}
%{ endfor ~}
%{ endfor ~}
%{ endif ~}