khuedoan-homelab/metal/roles/k3s/templates/config.yaml.j2
2021-12-22 15:25:59 +07:00

15 lines
347 B
Django/Jinja

{% if inventory_hostname == groups['masters'][0] %}
cluster-init: true
{% else %}
server: https://{{ hostvars[groups['masters'][0]].ansible_host }}:6443
{% endif %}
token-file: {{ k3s_token_file }}
{% if 'masters' in group_names %}
disable-cloud-controller: true
disable:
- local-storage
- servicelb
- traefik
secrets-encryption: true
{% endif %}