From ce0e0b06a9d4cdceab427770edee9f3146a7233a Mon Sep 17 00:00:00 2001 From: forbxy Date: Thu, 21 Jan 2021 17:48:18 +0800 Subject: [PATCH] =?UTF-8?q?kube-proxy=E7=9A=84metrics=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E9=9D=9E=E6=9C=AC=E5=9C=B0=E7=8E=AF=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/kube-node/templates/kube-proxy.service.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/kube-node/templates/kube-proxy.service.j2 b/roles/kube-node/templates/kube-proxy.service.j2 index 0b47527..36c3bc7 100644 --- a/roles/kube-node/templates/kube-proxy.service.j2 +++ b/roles/kube-node/templates/kube-proxy.service.j2 @@ -12,7 +12,8 @@ ExecStart={{ bin_dir }}/kube-proxy \ --hostname-override={{ inventory_hostname }} \ --kubeconfig=/etc/kubernetes/kube-proxy.kubeconfig \ --logtostderr=true \ - --proxy-mode={{ PROXY_MODE }} + --proxy-mode={{ PROXY_MODE }} \ + --metrics-bind-address={{ inventory_hostname }} Restart=always RestartSec=5 LimitNOFILE=65536