techno-tim / k3s-ansible

The easiest way to bootstrap a self-hosted High Availability Kubernetes cluster. A fully automated HA k3s etcd install with kube-vip, MetalLB, and more. Build. Destroy. Repeat.
https://technotim.live/posts/k3s-etcd-ansible/
Apache License 2.0
2.41k stars 1.05k forks source link

Verify Reset Task Actually Removes the VIP #103

Closed timothystewart6 closed 2 years ago

timothystewart6 commented 2 years ago
    I overlooked this change but I think this is needed otherwise the vip is not removed and will cause errors if you try to run the playbook twice without rebooting.  I took the easy route and just rebooted the nodes as part of the reset.  You can test by pining the vip white resetting.  https://github.com/techno-tim/k3s-ansible/pull/31

_Originally posted by @timothystewart6 in https://github.com/techno-tim/k3s-ansible/pull/92#discussion_r979338462_

timothystewart6 commented 2 years ago

This was fixed by https://github.com/techno-tim/k3s-ansible/pull/104 but need to verify

timothystewart6 commented 2 years ago
TASK [Reboot and wait for node to come back up] ************************************************************************************************************
Monday 26 September 2022  18:28:56 -0500 (0:00:00.121)       0:00:11.688 ******
changed: [192.168.30.42]
changed: [192.168.30.39]
changed: [192.168.30.41]
changed: [192.168.30.40]
changed: [192.168.30.38]

PLAY RECAP *************************************************************************************************************************************************
192.168.30.38              : ok=23   changed=1    unreachable=0    failed=0
   skipped=13   rescued=0    ignored=0
192.168.30.39              : ok=23   changed=1    unreachable=0    failed=0
   skipped=13   rescued=0    ignored=0
192.168.30.40              : ok=23   changed=1    unreachable=0    failed=0
   skipped=13   rescued=0    ignored=0
192.168.30.41              : ok=23   changed=1    unreachable=0    failed=0
   skipped=13   rescued=0    ignored=0
192.168.30.42              : ok=23   changed=1    unreachable=0    failed=0
   skipped=13   rescued=0    ignored=0

Monday 26 September 2022  18:29:23 -0500 (0:00:27.275)       0:00:38.964 ******