fixing dns

This commit is contained in:
2021-11-10 00:37:26 +01:00
parent 94a80c12ec
commit 54bdce08b2
2 changed files with 13 additions and 1 deletions

View File

@ -21,4 +21,11 @@
src: resolv.conf
dest: /etc/resolv.conf
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