31 lines
1.2 KiB
Django/Jinja
31 lines
1.2 KiB
Django/Jinja
KUBE_LOG_LEVEL="--v={{ kube_log_level }}"
|
|
KUBELET_ADDRESS="--node-ip={{ kubelet_address }}"
|
|
{% if kube_override_hostname|default('') %}
|
|
KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}"
|
|
{% endif %}
|
|
|
|
{# Base kubelet args #}
|
|
{% set kubelet_args_base -%}
|
|
{# start kubeadm specific settings #}
|
|
--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf \
|
|
--config={{ kube_config_dir }}/kubelet-config.yaml \
|
|
--kubeconfig={{ kube_config_dir }}/kubelet.conf \
|
|
{# end kubeadm specific settings #}
|
|
--runtime-cgroups={{ kubelet_runtime_cgroups }} \
|
|
{% endset %}
|
|
|
|
KUBELET_ARGS="{{ kubelet_args_base }} {{ kubelet_custom_flags | join(' ') }}"
|
|
{% if kubelet_flexvolumes_plugins_dir is defined %}
|
|
KUBELET_VOLUME_PLUGIN="--volume-plugin-dir={{ kubelet_flexvolumes_plugins_dir }}"
|
|
{% endif %}
|
|
{% if kube_network_plugin is defined and kube_network_plugin == "cloud" %}
|
|
KUBELET_NETWORK_PLUGIN="--hairpin-mode=promiscuous-bridge --network-plugin=kubenet"
|
|
{% endif %}
|
|
{% if cloud_provider == "external" %}
|
|
KUBELET_CLOUDPROVIDER="--cloud-provider={{ cloud_provider }}"
|
|
{% else %}
|
|
KUBELET_CLOUDPROVIDER=""
|
|
{% endif %}
|
|
|
|
PATH={{ bin_dir }}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|