This commit is contained in:
parent
18c9c75569
commit
ecc2c41afe
4 changed files with 45 additions and 18 deletions
21
templates/etc/rancher/k3s/config.yaml.j2
Normal file
21
templates/etc/rancher/k3s/config.yaml.j2
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
flannel-backend: wireguard
|
||||
{% if kubernetes_master|bool %}
|
||||
{% if vars['KubernetesMasterConfigured_' ~ kubernetes_cluster_name] is not defined %}
|
||||
cluster-init: true
|
||||
{% else %}
|
||||
server: https://{{ kubernetes_master }}:6443
|
||||
token: ${NODE_TOKEN}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
server: https://{{ kubernetes_master }}:6443
|
||||
token: ${NODE_TOKEN}
|
||||
{% endif %}
|
||||
#node-label:
|
||||
# - "foo=bar"
|
||||
# - "something=amazing"
|
||||
{% if ansible_os_family == "RedHat" %}
|
||||
selinux: true
|
||||
{% endif %}
|
||||
secrets-encryption: true
|
||||
disable:
|
||||
- traefik
|
||||
Loading…
Add table
Add a link
Reference in a new issue