Browse Source

Merge pull request #3335 from AtzeDeVries/fix/ubuntu-xenial-resolv-conf

Fix/ubuntu xenial resolv conf
pull/3370/head
k8s-ci-robot 6 years ago
committed by GitHub
parent
commit
51a5f54fc4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions
  1. 11
      roles/kubernetes/node/tasks/facts.yml
  2. 2
      roles/kubernetes/node/vars/ubuntu-18.yml

11
roles/kubernetes/node/tasks/facts.yml

@ -8,3 +8,14 @@
standalone_kubelet: >-
{%- if inventory_hostname in groups['kube-master'] and inventory_hostname not in groups['kube-node'] -%}true{%- else -%}false{%- endif -%}
kubelet_cgroup_driver_detected: "{{ docker_cgroup_driver_result.stdout }}"
- name: os specific vars
include_vars: "{{ item }}"
with_first_found:
- files:
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_version|lower|replace('/', '_') }}.yml"
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_release }}.yml"
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_major_version|lower|replace('/', '_') }}.yml"
- "{{ ansible_distribution|lower }}.yml"
- "{{ ansible_os_family|lower }}.yml"
skip: true

2
roles/kubernetes/node/vars/ubuntu-18.yml

@ -0,0 +1,2 @@
---
kube_resolv_conf: "/run/systemd/resolve/resolv.conf"
Loading…
Cancel
Save