Added dns fixer
This commit is contained in:
parent
1ca623a038
commit
abcd07666c
@ -6,6 +6,11 @@
|
|||||||
async: 45
|
async: 45
|
||||||
poll: 0
|
poll: 0
|
||||||
|
|
||||||
|
- name: "restartkubelet"
|
||||||
|
systemd:
|
||||||
|
name: kubelet
|
||||||
|
state: restarted
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: "do apt stuff"
|
- name: "do apt stuff"
|
||||||
import_tasks: tasks/apt.yaml
|
import_tasks: tasks/apt.yaml
|
||||||
|
@ -22,3 +22,10 @@
|
|||||||
dest: /etc/resolv.conf
|
dest: /etc/resolv.conf
|
||||||
mode: 644
|
mode: 644
|
||||||
owner: root
|
owner: root
|
||||||
|
|
||||||
|
- name: fix kubelet wrong resolver
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/kubernetes/kubelet-config.yaml
|
||||||
|
regexp: '^resolvConf:'
|
||||||
|
line: 'resolvConf: "/etc/resolv.conf"'
|
||||||
|
notify: restartkubelet
|
Loading…
Reference in New Issue
Block a user