# There must be a minimum of 3 controllers and the number must be odd for etcd to work
k3s_cluster:
hosts:
raspi:
vpn_port: 3210
vpn_ip: 10.10.10.1
k3s_control_node: true
public_ip: home.example.com
labels:
- dns=true
- local=true
big_manager:
vpn_port: 3211
vpn_ip: 10.10.10.2
k3s_control_node: true
public_ip: cloud.example.com
labels:
- nas=true
- local=true
small_manager:
# https://www.duckdns.org
duckdns:
token: duckdns_provided_token
domain: example.duckdns.org
vpn_port: 3212
vpn_ip: 10.10.10.3
k3s_control_node: true
public_ip: home.example.com
labels:
- public=true
- local=true
big_server:
vpn_port: 3213
vpn_ip: 10.10.10.4
labels:
- local=true
plugin: aws_ec2
regions:
- us-east-1
- us-east-2
filters:
instance-state-name: running
tag:Category:
- home-cloud
Run ansible-playbook setup_cluster.yml -i inventory_static.yml -i inventory_ec2.yml -e fqdn=example.com -e display_k8s_dashboard_password=true