Skip to content
Snippets Groups Projects
Commit c3e5aac1 authored by Matthew Mosesohn's avatar Matthew Mosesohn
Browse files

Add variable kube_resolv_conf

Allow configuration of a custom /etc/resolv.conf for kubelet.
parent 10b38ab9
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,9 @@ kube_log_dir: "/var/log/kubernetes"
dns_domain: "{{ cluster_name }}"
# resolv.conf to base dns config
kube_resolv_conf: "/etc/resolv.conf"
kube_proxy_mode: iptables
# An experimental dev/test only dynamic volumes provisioner,
......
......@@ -21,7 +21,7 @@ KUBELET_REGISTER_NODE="--register-node=false"
{% endif %}
# location of the api-server
{% if dns_setup %}
KUBELET_ARGS="--cluster_dns={{ dns_server }} --cluster_domain={{ dns_domain }} --kubeconfig={{ kube_config_dir}}/node-kubeconfig.yaml --config={{ kube_manifest_dir }}"
KUBELET_ARGS="--cluster_dns={{ dns_server }} --cluster_domain={{ dns_domain }} --kubeconfig={{ kube_config_dir}}/node-kubeconfig.yaml --config={{ kube_manifest_dir }} --resolv-conf={{ kube_resolv_conf }}"
{% else %}
KUBELET_ARGS="--kubeconfig={{ kube_config_dir}}/kubelet.kubeconfig --config={{ kube_manifest_dir }}"
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment