Sergii Golovatiuk | 707f7d8 | 2017-08-07 15:49:23 +0200 | [diff] [blame] | 1 | {%- from "kubernetes/map.jinja" import common with context -%} |
| 2 | {%- from "kubernetes/map.jinja" import pool with context -%} |
marco | acdae7e | 2015-12-02 15:35:37 +0100 | [diff] [blame] | 3 | |
| 4 | # 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] | 5 | DAEMON_ARGS="\ |
| 6 | --require-kubeconfig \ |
| 7 | --kubeconfig=/etc/kubernetes/kubelet.kubeconfig \ |
Tomáš Kukrál | a5acf18 | 2017-03-23 13:05:25 +0100 | [diff] [blame] | 8 | --pod-manifest-path=/etc/kubernetes/manifests \ |
Tomáš Kukrál | 5d33ce9 | 2017-03-21 15:15:14 +0100 | [diff] [blame] | 9 | --allow-privileged={{ pool.kubelet.allow_privileged }} \ |
Sergii Golovatiuk | 707f7d8 | 2017-08-07 15:49:23 +0200 | [diff] [blame] | 10 | --cluster_dns={{ common.addons.dns.server }} \ |
Matthew Mosesohn | 8c4ca8d | 2017-08-21 15:59:34 +0300 | [diff] [blame] | 11 | --cluster_domain={{ common.addons.dns.domain|replace('_', '-') }} \ |
Tomáš Kukrál | f3a74be | 2017-04-10 16:43:05 +0200 | [diff] [blame] | 12 | --cni-bin-dir={{ pool.apiserver.get('cni_bin_dir', '/opt/cni/bin') }} \ |
Tomáš Kukrál | 6a17955 | 2017-08-25 17:30:07 +0200 | [diff] [blame] | 13 | --hostname-override={{ pool.host.name }} \ |
Tomáš Kukrál | f78baa6 | 2017-04-20 16:18:16 +0200 | [diff] [blame] | 14 | --v={{ pool.get('verbosity', 2) }} \ |
Matthew Mosesohn | 3ef51c4 | 2017-05-19 12:49:24 +0300 | [diff] [blame] | 15 | --node-labels=node-role.kubernetes.io/node=true \ |
Tomáš Kukrál | 2d53861 | 2017-05-16 09:51:06 +0200 | [diff] [blame] | 16 | {%- if pool.network.engine in ['calico', 'opencontrail'] %} |
Tomáš Kukrál | 5d33ce9 | 2017-03-21 15:15:14 +0100 | [diff] [blame] | 17 | --network-plugin=cni \ |
| 18 | --network-plugin-dir=/etc/cni/net.d \ |
| 19 | {%- endif %} |
| 20 | --file-check-frequency={{ pool.kubelet.frequency }} \ |
Matthew Mosesohn | 1990351 | 2017-08-31 19:38:19 +0300 | [diff] [blame^] | 21 | {%- if common.get('cloudprovider', {}).get('enabled') %} |
| 22 | --cloud-provider={{ common.cloudprovider.provider }} \ |
| 23 | {%- if common.get('cloudprovider', {}).get('provider') == "openstack" %} |
| 24 | --cloud-config=/etc/kubernetes/cloud-config.conf \ |
| 25 | {%- endif %} |
| 26 | {%- endif %} |
Sergii Golovatiuk | 707f7d8 | 2017-08-07 15:49:23 +0200 | [diff] [blame] | 27 | {%- if common.addons.get('virtlet', {}).get('enabled') %} |
Tomáš Kukrál | 45e7fc0 | 2017-08-10 15:32:07 +0200 | [diff] [blame] | 28 | --container-runtime={{ pool.get('container-runtime', 'remote') }} \ |
| 29 | --container-runtime-endpoint={{ pool.get('container-runtime-endpoint', '/var/run/criproxy.sock') }} \ |
| 30 | --image-service-endpoint={{ pool.get('image-service-endpoint', '/var/run/criproxy.sock') }} \ |
| 31 | --enable-controller-attach-detach={{ pool.get('enable-controller-attach-detach', 'false') }} \ |
Sergii Golovatiuk | 707f7d8 | 2017-08-07 15:49:23 +0200 | [diff] [blame] | 32 | {%- endif %} |
Tomáš Kukrál | 5d33ce9 | 2017-03-21 15:15:14 +0100 | [diff] [blame] | 33 | {%- for key, value in pool.get('kubelet', {}).get('daemon_opts', {}).iteritems() %} |
Yuriy Taraday | 36f4340 | 2017-08-29 16:13:41 +0400 | [diff] [blame] | 34 | --{{ key }}={{ value }} \ |
Sergii Golovatiuk | 707f7d8 | 2017-08-07 15:49:23 +0200 | [diff] [blame] | 35 | {%- endfor %} |
Tomáš Kukrál | 5d33ce9 | 2017-03-21 15:15:14 +0100 | [diff] [blame] | 36 | " |