Browse Source

Merge pull request #638 from pskrzyns/fix_setting_loadbalancer_apiserver_localhost

Fix conditional when setting loadbalancer_apiserver_localhost
pull/645/head
Antoine Legrand 8 years ago
committed by GitHub
parent
commit
d3a4d8dc24
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes/preinstall/tasks/set_facts.yml

2
roles/kubernetes/preinstall/tasks/set_facts.yml

@ -6,7 +6,7 @@
- set_fact: first_kube_master="{{ hostvars[groups['kube-master'][0]]['access_ip'] | default(hostvars[groups['kube-master'][0]]['ip'] | default(hostvars[groups['kube-master'][0]]['ansible_default_ipv4']['address'])) }}"
- set_fact:
loadbalancer_apiserver_localhost: false
when: loadbalancer_apiserver is defined
when: loadbalancer_apiserver is defined
- set_fact:
kube_apiserver_endpoint: |-
{% if not is_kube_master and loadbalancer_apiserver_localhost -%}

Loading…
Cancel
Save