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

Missing k3s_server_location: /var/lib/rancher/k3s/ #5

Closed Amoenus closed 2 years ago

Amoenus commented 2 years ago

Had to add k3s_server_location: /var/lib/rancher/k3s/ to inventory/my-cluster/group_vars/all.yml for playbook to succeed

timothystewart6 commented 2 years ago

Hey! There was a bug that snuck in when I was cleaning up the repo. If you pull latest it should be fixed! Thanks for letting me know!

timothystewart6 commented 2 years ago

I just tested with latest and it works

➜  repogit:(master) kubectl get nodes
NAME     STATUS   ROLES                       AGE   VERSION
k3s-01   Ready    control-plane,etcd,master   31h   v1.23.4+k3s1
k3s-02   Ready    control-plane,etcd,master   31h   v1.23.4+k3s1
k3s-03   Ready    control-plane,etcd,master   31h   v1.23.4+k3s1
k3s-04   Ready    <none>                      31h   v1.23.4+k3s1
k3s-05   Ready    <none>                      31h   v1.23.4+k3s1

Sorry about the bug, I fixed it shortly after but it was there for a few hours. A git pull should fix it!

waterfallm commented 2 years ago

yeap i can confirm this fix works.. before the fix the kube-vip wasn't coming up.

timothystewart6 commented 2 years ago

Thank you and sorry!

Amoenus commented 2 years ago

No need to apologize. Keep up the great work!!!