feat: add option to set node name
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
c0e0f17f51
commit
3e5e2cd6ce
@ -11,6 +11,7 @@ k3s_packages_extra: []
|
||||
|
||||
k3s_reset: False
|
||||
k3s_token: "secure-token"
|
||||
k3s_node_name: "{{ ansible_hostname }}"
|
||||
k3s_node_ip: "{{ ansible_default_ipv4.address }}"
|
||||
k3s_init_log_enabled: False
|
||||
k3s_selinux_enabled: False
|
||||
|
@ -3,6 +3,7 @@
|
||||
{% set __k3s_kube_apiserver_arg = lookup('template', '_internal/apiserver-arg.yaml.j2') | from_yaml %}
|
||||
{% set __k3s_kubelet_arg = lookup('template', '_internal/kubelet-arg.yaml.j2') | from_yaml %}
|
||||
token: "{{ k3s_token }}"
|
||||
node-name: "{{ k3s_node_name }}"
|
||||
node-ip: "{{ k3s_node_ip }}"
|
||||
{% if __k3s_kubelet_arg is iterable %}
|
||||
kubelet-arg:
|
||||
|
Loading…
Reference in New Issue
Block a user