Skip to content

Commit

Permalink
Fix conflicting clusterIP fact between coredns and nodelocaldns
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfabrice committed May 27, 2020
1 parent e9ce724 commit 92f099c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Kubernetes Apps | set up necessary nodelocaldns parameters
set_fact:
clusterIP: >-
primaryClusterIP: >-
{%- if dns_mode in ['coredns', 'coredns_dual'] -%}
{{ skydns_server }}
{%- elif dns_mode == 'manual' -%}
Expand All @@ -21,9 +21,9 @@
vars:
forwardTarget: >-
{%- if secondaryclusterIP is defined and dns_mode == 'coredns_dual' -%}
{{ clusterIP }} {{ secondaryclusterIP }}
{{ primaryClusterIP }} {{ secondaryclusterIP }}
{%- else -%}
{{ clusterIP }}
{{ primaryClusterIP }}
{%- endif -%}
upstreamForwardTarget: >-
{%- if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 -%}
Expand Down

0 comments on commit 92f099c

Please sign in to comment.