feat(k3s): Disable embeded LB

This commit is contained in:
Tanguy Herbron 2022-11-16 23:53:26 +01:00
parent 234e986eff
commit f568a97b10
3 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
all: setup wg k3s
install: setup wg k3s
setup:
ansible-playbook -i "inventory/hosts.yml" "init.yml"
@ -9,3 +9,6 @@ wg:
k3s:
ansible-playbook -i "inventory/hosts.yml" "k3s-ansible/site.yml"
uninstall:
ansible-playbook -i "inventory/hosts.yml" "k3s-ansible/reset.yml"

View File

@ -42,3 +42,8 @@ Running the configuration for a node with inventory
```
ansible-playbook init.yml -i inventory --limit virgin
```
Initiate the cluster from scratch
```
make all
```

View File

@ -3,7 +3,7 @@ k3s_version: v1.23.6+k3s1
# ansible_user: debian
systemd_dir: /etc/systemd/system
master_ip: "{{ hostvars[groups['master'][0]]['wireguard_ip'] | default(groups['master'][0]) }}"
extra_server_args: "--no-deploy traefik --advertise-address {{hostvars[inventory_hostname]['wireguard_ip']}} --flannel-iface wg0 --tls-san {{ ansible_host }}"
extra_server_args: "--no-deploy traefik --advertise-address {{hostvars[inventory_hostname]['wireguard_ip']}} --flannel-iface wg0 --tls-san {{ ansible_host }} --disable servicelb"
extra_agent_args: "--flannel-iface wg0 --node-external-ip {{hostvars[inventory_hostname]['ansible_default_ipv4']['address']}}"
cluster_vip: "10.20.0.2"