Add domain field to resolv.conf

- For legacy code that relies on shortname DNS resolution, add
  a entry for the domain in the rendered /etc/resolv.conf

Change-Id: I67af9e242cc31aac57db3aa6a8327a8de72cba9e
This commit is contained in:
Scott Hussey 2018-09-05 16:17:10 -05:00
parent 0233c30ffb
commit 9f61ead791
1 changed files with 1 additions and 0 deletions

View File

@ -1,4 +1,5 @@
options timeout:1 attempts:1
domain {{ config.get_first('Genesis:domain', 'KubernetesNode:domain', default='local') }}
nameserver {{ config['KubernetesNetwork:dns.service_ip'] }}
{% for server in config['KubernetesNetwork:dns.upstream_servers'] | default([]) %}