Browse Source

Set node IP correctly (#1770)

Fixes #1741
pull/1774/merge
Matthew Mosesohn 7 years ago
committed by GitHub
parent
commit
fe4ba51d1a
2 changed files with 2 additions and 2 deletions
  1. 2
      roles/kubernetes/node/templates/kubelet.kubeadm.env.j2
  2. 2
      roles/kubernetes/node/templates/kubelet.standard.env.j2

2
roles/kubernetes/node/templates/kubelet.kubeadm.env.j2

@ -5,7 +5,7 @@
KUBE_LOGGING="--logtostderr=true"
KUBE_LOG_LEVEL="--v={{ kube_log_level }}"
# The address for the info server to serve on (set to 0.0.0.0 or "" for all interfaces)
KUBELET_ADDRESS="--address={{ ip | default("0.0.0.0") }}"
KUBELET_ADDRESS="--address={{ ip | default("0.0.0.0") }} {% if ip is defined %} --node-ip={{ ip }}{% endif %}"
# The port for the info server to serve on
# KUBELET_PORT="--port=10250"
# You may leave this blank to use the actual hostname

2
roles/kubernetes/node/templates/kubelet.standard.env.j2

@ -2,7 +2,7 @@
KUBE_LOGGING="--logtostderr=true"
KUBE_LOG_LEVEL="--v={{ kube_log_level }}"
# The address for the info server to serve on (set to 0.0.0.0 or "" for all interfaces)
KUBELET_ADDRESS="--address={{ ip | default("0.0.0.0") }}"
KUBELET_ADDRESS="--address={{ ip | default("0.0.0.0") }} {% if ip is defined %} --node-ip={{ ip }}{% endif %}"
# The port for the info server to serve on
# KUBELET_PORT="--port=10250"
# You may leave this blank to use the actual hostname

Loading…
Cancel
Save