-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.yaml
37 lines (31 loc) · 1.18 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
k3s_version: v1.28.13+k3s1
k3s_node_type: agent # can be "agent" or "server"
k3s_systemd_dir: /etc/systemd/system
k3s_server_location: /var/lib/rancher/k3s
k3s_server_ip: "{{ hostvars[groups['k3s_server'][0]]['ansible_host'] | default(groups['k3s_server'][0]) }}"
k3s_server_extra_args: >-
--node-external-ip={{ ansible_host }}
k3s_agent_extra_args: >-
--node-external-ip={{ ansible_host }}
# --flannel-iface=wg0
# On an agent node:
# --node-ip={{ wg0_ip_addr }}
#
# Enable this if you want to cleanup and uninstall the k3s service on the host
k3s_cleanup: false
# Enable this if you also want to remove the persisten volumes created by the "local-path" storage class
k3s_cleanup_localpath_persistent_volumes: false
k3s_etcd_enabled: false
k3s_etcd_snapshot_enabled: false
k3s_etcd_snapshot_schedule_cron: "0 */12 * * *"
k3s_etcd_snapshot_retention: 5
k3s_etcd_snapshot_bucket: k3s-etcd-snapshots
k3s_etcd_snapshot_endpoint: localhost:9000
k3s_etcd_snapshot_access_key: minio
k3s_etcd_snapshot_secret_key: minio123
k3s_etcd_snapshot_skip_ssl_verify: false
k3s_etcd_snapshot_region: us-east-1
k3s_etcd_snapshot_folder: snapshots
k3s_etcd_snapshot_insecure: false
k3s_etcd_snapshot_timeout: 5m0s