Initial commit
This commit is contained in:
30
defaults/main.yml
Normal file
30
defaults/main.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
flannel_iface: "eth0"
|
||||
apiserver_endpoint: 10.100.100.240
|
||||
apiserver_mask: 24
|
||||
|
||||
k3s_token: changeme
|
||||
|
||||
k3s_node_ip: '{{ ansible_facts[flannel_iface]["ipv4"]["address"] }}'
|
||||
|
||||
kube_vip_tag_version: "v0.5.5"
|
||||
|
||||
metal_lb_speaker_tag_version: "v0.13.7"
|
||||
metal_lb_controller_tag_version: "v0.13.7"
|
||||
metal_lb_ip_range: "10.100.100.236-10.100.100.239"
|
||||
|
||||
server_init_args: >-
|
||||
{% if groups['master'] | length > 1 %}
|
||||
{% if ansible_hostname == hostvars[groups['master'][0]]['ansible_hostname'] %}
|
||||
--cluster-init
|
||||
{% else %}
|
||||
--server https://{{ hostvars[groups['master'][0]].k3s_node_ip }}:6443
|
||||
{% endif %}
|
||||
--token {{ k3s_token }}
|
||||
{% endif %}
|
||||
{{ extra_server_args | default('') }}
|
||||
|
||||
node_extra_args: >-
|
||||
K3S_URL=https://{{ hostvars[groups['master'][0]].k3s_node_ip }}:6443
|
||||
K3S_TOKEN={{ k3s_token }}
|
||||
...
|
||||
Reference in New Issue
Block a user