Calico uses the loadbalancer to reach etcd if 'loadbalancer_address' is defined. The loadbalancer has to be configured first

This commit is contained in:
Smaine Kahlouch
2015-12-12 19:06:57 +01:00
parent 1568cbe8e9
commit 3cbcd6f189
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
- name: Calico | Configure calico-node desired pool
shell: calicoctl pool add {{ kube_pods_subnet }}
environment:
ETCD_AUTHORITY: "{{ groups['kube-master'][0] }}:2379"
ETCD_AUTHORITY: "{{ loadbalancer_address | default(groups['kube-master'][0]) }}:2379"
run_once: true
- name: Calico | Write calico-node systemd init file