From bab2e5ed0d96fcf92652e2d0b88ce0f166e0b41d Mon Sep 17 00:00:00 2001 From: rongzhang Date: Fri, 11 Jan 2019 12:22:47 +0800 Subject: [PATCH] Use --bind-address instead of --address --address deprecated --- .../master/templates/kubeadm-config.v1alpha3.yaml.j2 | 4 ++-- .../master/templates/kubeadm-config.v1beta1.yaml.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/kubernetes/master/templates/kubeadm-config.v1alpha3.yaml.j2 b/roles/kubernetes/master/templates/kubeadm-config.v1alpha3.yaml.j2 index 2d5fb6978..5a526790f 100644 --- a/roles/kubernetes/master/templates/kubeadm-config.v1alpha3.yaml.j2 +++ b/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 %} diff --git a/roles/kubernetes/master/templates/kubeadm-config.v1beta1.yaml.j2 b/roles/kubernetes/master/templates/kubeadm-config.v1beta1.yaml.j2 index 73faa2889..6772e0da5 100644 --- a/roles/kubernetes/master/templates/kubeadm-config.v1beta1.yaml.j2 +++ b/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 %}