Skip to content
Snippets Groups Projects
Commit 01dc6b2f authored by Sergii Golovatiuk's avatar Sergii Golovatiuk
Browse files

Add aws to default_resolver


When VPC is used, external DNS might not be available. This patch change
behavior to use metadata service instead of external DNS when
upstream_dns_servers is not specified.

Signed-off-by: default avatarSergii Golovatiuk <sgolovatiuk@mirantis.com>
parent d8aa2d0a
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
{{dns_domain}}.{{d}}./{{d}}.{{d}}./com.{{d}}./ {{dns_domain}}.{{d}}./{{d}}.{{d}}./com.{{d}}./
{%- endfor %} {%- endfor %}
default_resolver: >- default_resolver: >-
{%- if cloud_provider is defined and cloud_provider == 'gce' -%}169.254.169.254{%- else -%}8.8.8.8{%- endif -%} {%- if cloud_provider is defined and cloud_provider in [ 'gce', 'aws' ] -%}169.254.169.254{%- else -%}8.8.8.8{%- endif -%}
- name: check if kubelet is configured - name: check if kubelet is configured
stat: stat:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment