Skip to content

Commit

Permalink
Default to empty resolv-conf in agent config (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHendrickson authored Feb 5, 2023
1 parent 9352c3f commit 14e7f9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ansible/inventory/group_vars/master/k3s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ k3s_server:
cluster-cidr: "10.42.0.0/16"
# Network CIDR to use for service IPs
service-cidr: "10.43.0.0/16"
kubelet-arg:
# Don't pull /etc/resolv.conf from host
- "resolv-conf="
kube-controller-manager-arg:
# Required to monitor kube-controller-manager with kube-prometheus-stack
- "bind-address=0.0.0.0"
Expand Down
4 changes: 4 additions & 0 deletions ansible/inventory/group_vars/worker/k3s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ k3s_control_node: false
# (dict) k3s settings for all worker nodes
k3s_agent:
node-ip: "{{ ansible_host }}"
kubelet-arg:
# Don't pull /etc/resolv.conf from host
- "resolv-conf="

0 comments on commit 14e7f9f

Please sign in to comment.