File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
addons/metadata-proxy/gce Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 44
44
containers :
45
45
- name : metadata-proxy
46
46
image : k8s.gcr.io/metadata-proxy:v0.1.12
47
+ args : ["--addr=0.0.0.0:988"]
47
48
securityContext :
48
49
privileged : true
49
50
# Request and limit resources to get guaranteed QoS.
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ function config-ip-firewall {
173
173
# node because we don't expect the daemonset to run on this node.
174
174
if [[ " ${ENABLE_METADATA_CONCEALMENT:- } " == " true" ]] && [[ ! " ${METADATA_CONCEALMENT_NO_FIREWALL:- } " == " true" ]]; then
175
175
echo " Add rule for metadata concealment"
176
- iptables -w -t nat -I PREROUTING -p tcp - d " ${METADATA_SERVER_IP} " --dport 80 -m comment --comment " metadata-concealment: bridge traffic to metadata server goes to metadata proxy" -j DNAT --to-destination 127.0.0.1: 988
176
+ iptables -w -t nat -I PREROUTING -p tcp ! -i eth0 - d " ${METADATA_SERVER_IP} " --dport 80 -m comment --comment " metadata-concealment: bridge traffic to metadata server goes to metadata proxy" -j REDIRECT --to-ports 988
177
177
fi
178
178
179
179
# Log all metadata access not from approved processes.
940
940
limitedResources:
941
941
- resource: pods
942
942
matchScopes:
943
- - scopeName: PriorityClass
943
+ - scopeName: PriorityClass
944
944
operator: In
945
945
values: ["system-node-critical", "system-cluster-critical"]
946
946
EOF
You can’t perform that action at this time.
0 commit comments