forked from catalin/fukuops
feat: migrate ansible/k3s from https://gitlab.com/fukurokuju/vm-foundation
This commit is contained in:
parent
81b6f45b08
commit
1cc30ed503
15 changed files with 202 additions and 1 deletions
2
ansible/k3s/roles/k3s/templates/agent.config.yaml.j2
Normal file
2
ansible/k3s/roles/k3s/templates/agent.config.yaml.j2
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
token: {{ cluster_token }}
|
||||
server: https://{{ tls_san }}:6443
|
||||
12
ansible/k3s/roles/k3s/templates/master.config.yaml.j2
Normal file
12
ansible/k3s/roles/k3s/templates/master.config.yaml.j2
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
tls-san:
|
||||
- {{ inventory_hostname }}
|
||||
- {{ tls_san }}
|
||||
node-label:
|
||||
- name={{ inventory_hostname }}
|
||||
token: "{{ cluster_token }}"
|
||||
etcd-snapshot-dir: {{ etcd_snapshot_dir }}
|
||||
{% if is_first_master %}
|
||||
cluster-init: "{{ is_first_master }}"
|
||||
{% else %}
|
||||
server: https://{{ first_master_hostname }}:6443
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue