Fix etcd host

This commit is contained in:
Antoine Legrand 2016-01-19 14:08:32 +01:00
parent 59614fc60d
commit ec2f9d17ab

View file

@ -10,8 +10,7 @@ spec:
command: command:
- /hyperkube - /hyperkube
- apiserver - apiserver
- --etcd-servers={% for srv in groups['etcd'] %}http://{{ srv }}:2379{% if not loop.last %},{% endif %}{% endfor %} - --etcd-servers={% for srv in groups['etcd'] %}http://{{ hostvars[srv]['ip'] | default( hostvars[srv]['ansible_default_ipv4']['address']) | default(srv) }}:2379{% if not loop.last %},{% endif %}{% endfor %}
- --admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota - --admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota
- --service-cluster-ip-range={{ kube_service_addresses }} - --service-cluster-ip-range={{ kube_service_addresses }}
- --client-ca-file={{ kube_cert_dir }}/ca.pem - --client-ca-file={{ kube_cert_dir }}/ca.pem