mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-10 07:23:30 +01:00
added kubelet args key
Signed-off-by: Ryan Holt <ryan@ryanholt.net>
This commit is contained in:
parent
c4547306ce
commit
c473f932c4
2 changed files with 8 additions and 0 deletions
|
@ -126,6 +126,7 @@ Below are variables that are set against specific hosts in your inventory.
|
||||||
| `k3s_node_ip_address` | IP Address to advertise for this node. | _NULL_ |
|
| `k3s_node_ip_address` | IP Address to advertise for this node. | _NULL_ |
|
||||||
| `k3s_node_external_address` | External IP Address to advertise for this node. | _NULL_ |
|
| `k3s_node_external_address` | External IP Address to advertise for this node. | _NULL_ |
|
||||||
| `k3s_node_labels` | List of node labels. | _NULL_ |
|
| `k3s_node_labels` | List of node labels. | _NULL_ |
|
||||||
|
| `k3s_kubelet_args` | A list of kubelet args to pass to the server. | [] |
|
||||||
| `k3s_node_taints` | List of node taints. | _NULL_ |
|
| `k3s_node_taints` | List of node taints. | _NULL_ |
|
||||||
| `k3s_node_data_dir` | Folder to hold state. | `/var/lib/rancher/k3s` |
|
| `k3s_node_data_dir` | Folder to hold state. | `/var/lib/rancher/k3s` |
|
||||||
| `k3s_tls_san` | Add additional hosname or IP as Subject Alternate Name in the TLS cert. | _NULL_ |
|
| `k3s_tls_san` | Add additional hosname or IP as Subject Alternate Name in the TLS cert. | _NULL_ |
|
||||||
|
|
|
@ -129,6 +129,13 @@ ExecStart={{ k3s_install_dir }}/k3s
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if k3s_kubelet_args is defined and k3s_kubelet_args is iterable %}
|
||||||
|
{% for arg in k3s_kubelet_args %}
|
||||||
|
{% for key, value in arg.items() %}
|
||||||
|
--kubelet-arg {{ key }}={{ value }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% endfilter %}
|
{% endfilter %}
|
||||||
{% endfilter %}
|
{% endfilter %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue