Skip to content
Snippets Groups Projects
Unverified Commit be3283c9 authored by jeanfabrice's avatar jeanfabrice Committed by GitHub
Browse files

Fix conflicting clusterIP fact between coredns and nodelocaldns (#6195)

parent 249b0a2a
No related branches found
No related tags found
No related merge requests found
---
- 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' -%}
......@@ -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 -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment