kube-proxy loadbalancing, need an external loadbalancer

This commit is contained in:
Smaine Kahlouch
2015-12-15 15:20:08 +01:00
parent 4055980ce6
commit 953f482585
5 changed files with 30 additions and 14 deletions

View File

@@ -15,7 +15,11 @@ spec:
{% if inventory_hostname in groups['kube-master'] %}
- --master=http://127.0.0.1:8080
{% else %}
- --master=https://{{ groups['kube-master'][0] }}:{{kube_apiserver_port }}
{% if loadbalancer_apiserver.address is defined | default('') %}
- --master=https://{{ apiserver_loadbalancer_domain_name }}:{{ loadbalancer_apiserver.port }}
{% else %}
- --master=https://{{ groups['kube-master'][0] }}:{{ kube_apiserver_port }}
{% endif%}
- --kubeconfig=/etc/kubernetes/node-kubeconfig.yaml
{% endif %}
securityContext: