Browse Source

Use --bind-address instead of --address

--address deprecated
pull/4026/head
rongzhang 5 years ago
parent
commit
bab2e5ed0d
2 changed files with 4 additions and 4 deletions
  1. 4
      roles/kubernetes/master/templates/kubeadm-config.v1alpha3.yaml.j2
  2. 4
      roles/kubernetes/master/templates/kubeadm-config.v1beta1.yaml.j2

4
roles/kubernetes/master/templates/kubeadm-config.v1alpha3.yaml.j2

@ -129,7 +129,7 @@ controllerManagerExtraArgs:
node-monitor-period: {{ kube_controller_node_monitor_period }}
pod-eviction-timeout: {{ kube_controller_pod_eviction_timeout }}
node-cidr-mask-size: "{{ kube_network_node_prefix }}"
address: {{ kube_controller_manager_bind_address }}
bind-address: {{ kube_controller_manager_bind_address }}
{% if kube_feature_gates %}
feature-gates: {{ kube_feature_gates|join(',') }}
{% endif %}
@ -143,7 +143,7 @@ controllerManagerExtraArgs:
cloud-config: {{ kube_config_dir }}/cloud_config
{% endif %}
schedulerExtraArgs:
address: {{ kube_scheduler_bind_address }}
bind-address: {{ kube_scheduler_bind_address }}
{% if kube_feature_gates %}
feature-gates: {{ kube_feature_gates|join(',') }}
{% endif %}

4
roles/kubernetes/master/templates/kubeadm-config.v1beta1.yaml.j2

@ -172,7 +172,7 @@ controllerManager:
node-monitor-period: {{ kube_controller_node_monitor_period }}
pod-eviction-timeout: {{ kube_controller_pod_eviction_timeout }}
node-cidr-mask-size: "{{ kube_network_node_prefix }}"
address: {{ kube_controller_manager_bind_address }}
bind-address: {{ kube_controller_manager_bind_address }}
{% if kube_feature_gates %}
feature-gates: {{ kube_feature_gates|join(',') }}
{% endif %}
@ -206,7 +206,7 @@ controllerManager:
{% endif %}
scheduler:
extraArgs:
address: {{ kube_controller_manager_bind_address }}
bind-address: {{ kube_scheduler_bind_address }}
{% if kube_feature_gates %}
feature-gates: {{ kube_feature_gates|join(',') }}
{% endif %}

Loading…
Cancel
Save