Skip to content
Snippets Groups Projects
Commit 3cbcd6f1 authored by Smaine Kahlouch's avatar Smaine Kahlouch
Browse files

Calico uses the loadbalancer to reach etcd if 'loadbalancer_address' is...

Calico uses the loadbalancer to reach etcd if 'loadbalancer_address' is defined. The loadbalancer has to be configured first
parent 1568cbe8
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
- name: Calico | Configure calico-node desired pool - name: Calico | Configure calico-node desired pool
shell: calicoctl pool add {{ kube_pods_subnet }} shell: calicoctl pool add {{ kube_pods_subnet }}
environment: environment:
ETCD_AUTHORITY: "{{ groups['kube-master'][0] }}:2379" ETCD_AUTHORITY: "{{ loadbalancer_address | default(groups['kube-master'][0]) }}:2379"
run_once: true run_once: true
- name: Calico | Write calico-node systemd init file - name: Calico | Write calico-node systemd init file
......
...@@ -10,7 +10,7 @@ KUBERNETES_MASTER={{ groups['kube-master'][0] }} ...@@ -10,7 +10,7 @@ KUBERNETES_MASTER={{ groups['kube-master'][0] }}
# Location of etcd cluster used by Calico. By default, this uses the etcd # Location of etcd cluster used by Calico. By default, this uses the etcd
# instance running on the Kubernetes Master # instance running on the Kubernetes Master
ETCD_AUTHORITY={{ groups['kube-master'][0] }}:2379 ETCD_AUTHORITY={{ loadbalancer_address | default(groups['kube-master'][0]) }}:2379
# The kubernetes-apiserver location - used by the calico plugin # The kubernetes-apiserver location - used by the calico plugin
KUBE_API_ROOT=http://{{ groups['kube-master'][0] }}:{{kube_apiserver_insecure_port}}/api/v1/ KUBE_API_ROOT=http://{{ groups['kube-master'][0] }}:{{kube_apiserver_insecure_port}}/api/v1/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment