kube-proxy: Expose metrics port
@@ -41,11 +41,16 @@ spec:
- --hostname-override=$(NODE_NAME)
- --kubeconfig=/etc/kubernetes/kubeconfig
- --proxy-mode=iptables
+ - --metrics-bind-address=$(HOST_IP)
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
+ - name: HOST_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.hostIP
livenessProbe:
httpGet:
path: /healthz
