marco | acdae7e | 2015-12-02 15:35:37 +0100 | [diff] [blame] | 1 | {%- 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ál | 5d33ce9 | 2017-03-21 15:15:14 +0100 | [diff] [blame] | 4 | DAEMON_ARGS="\ |
| 5 | --require-kubeconfig \ |
| 6 | --kubeconfig=/etc/kubernetes/kubelet.kubeconfig \ |
Tomáš Kukrál | a5acf18 | 2017-03-23 13:05:25 +0100 | [diff] [blame] | 7 | --pod-manifest-path=/etc/kubernetes/manifests \ |
Tomáš Kukrál | 5d33ce9 | 2017-03-21 15:15:14 +0100 | [diff] [blame] | 8 | --allow-privileged={{ pool.kubelet.allow_privileged }} \ |
| 9 | --cluster_dns={{ pool.cluster_dns }} \ |
| 10 | --cluster_domain={{ pool.cluster_domain }} \ |
Tomáš Kukrál | f3a74be | 2017-04-10 16:43:05 +0200 | [diff] [blame] | 11 | --cni-bin-dir={{ pool.apiserver.get('cni_bin_dir', '/opt/cni/bin') }} \ |
Tomáš Kukrál | f78baa6 | 2017-04-20 16:18:16 +0200 | [diff] [blame] | 12 | --v={{ pool.get('verbosity', 2) }} \ |
Matthew Mosesohn | 3ef51c4 | 2017-05-19 12:49:24 +0300 | [diff] [blame^] | 13 | --node-labels=node-role.kubernetes.io/node=true \ |
Tomáš Kukrál | 2d53861 | 2017-05-16 09:51:06 +0200 | [diff] [blame] | 14 | {%- if pool.network.engine in ['calico', 'opencontrail'] %} |
Tomáš Kukrál | 5d33ce9 | 2017-03-21 15:15:14 +0100 | [diff] [blame] | 15 | --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 | " |