kube-proxy use kubeconfig on kube-master

This commit is contained in:
jwfang 2017-06-20 10:54:02 +08:00
parent d742a3953c
commit d3ea13b3f0

View file

@ -25,10 +25,7 @@ spec:
- /hyperkube - /hyperkube
- proxy - proxy
- --v={{ kube_log_level }} - --v={{ kube_log_level }}
- --master={{ kube_apiserver_endpoint }}
{% if not is_kube_master %}
- --kubeconfig={{kube_config_dir}}/kube-proxy-kubeconfig.yaml - --kubeconfig={{kube_config_dir}}/kube-proxy-kubeconfig.yaml
{% endif %}
- --bind-address={{ ip | default(ansible_default_ipv4.address) }} - --bind-address={{ ip | default(ansible_default_ipv4.address) }}
- --cluster-cidr={{ kube_pods_subnet }} - --cluster-cidr={{ kube_pods_subnet }}
- --proxy-mode={{ kube_proxy_mode }} - --proxy-mode={{ kube_proxy_mode }}