diff --git a/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml b/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml index 62908eb05bc456371b90779cd13288d31cd411c5..3e379c9b17d9bb32e0c9869d3f7c3e693ef66669 100644 --- a/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml +++ b/roles/kubernetes-apps/ansible/tasks/nodelocaldns.yml @@ -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' -%} @@ -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 -%}