blob: e19173806c4b7b79b6690f548086d2884f09299b [file] [log] [blame]
marcoacdae7e2015-12-02 15:35:37 +01001{%- from "kubernetes/map.jinja" import pool with context %}
2
3# test_args has to be kept at the end, so they'll overwrite any prior configuration
Tomáš Kukrál5d33ce92017-03-21 15:15:14 +01004DAEMON_ARGS="\
5--require-kubeconfig \
6--kubeconfig=/etc/kubernetes/kubelet.kubeconfig \
Tomáš Kukrála5acf182017-03-23 13:05:25 +01007--pod-manifest-path=/etc/kubernetes/manifests \
Tomáš Kukrál5d33ce92017-03-21 15:15:14 +01008--allow-privileged={{ pool.kubelet.allow_privileged }} \
9--cluster_dns={{ pool.cluster_dns }} \
10--cluster_domain={{ pool.cluster_domain }} \
Tomáš Kukrálf3a74be2017-04-10 16:43:05 +020011--cni-bin-dir={{ pool.apiserver.get('cni_bin_dir', '/opt/cni/bin') }} \
Tomáš Kukrálf78baa62017-04-20 16:18:16 +020012--v={{ pool.get('verbosity', 2) }} \
Matthew Mosesohn3ef51c42017-05-19 12:49:24 +030013--node-labels=node-role.kubernetes.io/node=true \
Tomáš Kukrál2d538612017-05-16 09:51:06 +020014{%- if pool.network.engine in ['calico', 'opencontrail'] %}
Tomáš Kukrál5d33ce92017-03-21 15:15:14 +010015--network-plugin=cni \
16--network-plugin-dir=/etc/cni/net.d \
17{%- endif %}
18--file-check-frequency={{ pool.kubelet.frequency }} \
19{%- for key, value in pool.get('kubelet', {}).get('daemon_opts', {}).iteritems() %}
20--{{ key }}="{{ value }}" \
21{% endfor %}
22"