Upgrade kube-vpi; improve settings; better reset (#31)

* fix(k3s): upgrade k3s + kube-vip

* chore(github): update template

* chore(docs): Updated README

* fix(ansible): Reboot as part of reset

* fix(kube-vip): improve settings

* chore(lint): fix

* chore(lint): fix
This commit is contained in:
Techno Tim 2022-05-26 15:32:25 -05:00 committed by GitHub
parent 5bf61c841f
commit e1a0298eb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 8 deletions

View File

@ -4,13 +4,16 @@
<!--- Provide a general summary of the issue in the Title above --> <!--- Provide a general summary of the issue in the Title above -->
## Expected Behavior ## Expected Behavior
<!--- Tell us what should happen --> <!--- Tell us what should happen -->
## Current Behavior ## Current Behavior
<!--- Tell us what happens instead of the expected behavior --> <!--- Tell us what happens instead of the expected behavior -->
## Steps to Reproduce ## Steps to Reproduce
<!--- reproduce this bug. Include code to reproduce, if relevant --> <!--- reproduce this bug. Include code to reproduce, if relevant -->
1. 1.
2. 2.
3. 3.

View File

@ -96,6 +96,10 @@ scp debian@master_ip:~/.kube/config ~/.kube/config
See the commands [here](https://docs.technotim.live/posts/k3s-etcd-ansible/#testing-your-cluster). See the commands [here](https://docs.technotim.live/posts/k3s-etcd-ansible/#testing-your-cluster).
### Troubleshooting
Be sure to see [this post](https://github.com/techno-tim/k3s-ansible/discussions/20) on how to troubleshoot common problems
### 🔷 Vagrant ### 🔷 Vagrant
You may want to kickstart your k3s cluster by using Vagrant to quickly build you all needed VMs with one command. You may want to kickstart your k3s cluster by using Vagrant to quickly build you all needed VMs with one command.
@ -109,6 +113,6 @@ This repo is really standing on the shoulders of giants. To all those who have
Thanks to these repos for code and ideas: Thanks to these repos for code and ideas:
* [k3s-io/k3s-ansible](https://github.com/k3s-io/k3s-ansible) - [k3s-io/k3s-ansible](https://github.com/k3s-io/k3s-ansible)
* [geerlingguy/turing-pi-cluster](https://github.com/geerlingguy/turing-pi-cluster) - [geerlingguy/turing-pi-cluster](https://github.com/geerlingguy/turing-pi-cluster)
* [212850a/k3s-ansible](https://github.com/212850a/k3s-ansible) - [212850a/k3s-ansible](https://github.com/212850a/k3s-ansible)

View File

@ -22,7 +22,7 @@ extra_server_args: "--no-deploy servicelb --no-deploy traefik"
extra_agent_args: "" extra_agent_args: ""
# image tag for kube-vip # image tag for kube-vip
kube_vip_tag_version: "v0.4.3" kube_vip_tag_version: "v0.4.4"
# image tag for metal lb # image tag for metal lb
metal_lb_speaker_tag_version: "v0.12.1" metal_lb_speaker_tag_version: "v0.12.1"

View File

@ -43,15 +43,15 @@ spec:
- name: vip_ddns - name: vip_ddns
value: "false" value: "false"
- name: svc_enable - name: svc_enable
value: "true" value: "false"
- name: vip_leaderelection - name: vip_leaderelection
value: "true" value: "true"
- name: vip_leaseduration - name: vip_leaseduration
value: "5" value: "15"
- name: vip_renewdeadline - name: vip_renewdeadline
value: "3" value: "10"
- name: vip_retryperiod - name: vip_retryperiod
value: "1" value: "2"
- name: address - name: address
value: {{ apiserver_endpoint }} value: {{ apiserver_endpoint }}
image: ghcr.io/kube-vip/kube-vip:{{ kube_vip_tag_version }} image: ghcr.io/kube-vip/kube-vip:{{ kube_vip_tag_version }}

View File

@ -23,6 +23,9 @@
- /var/lib/kubelet - /var/lib/kubelet
- /run/netns - /run/netns
- /var/lib/rancher/k3s - /var/lib/rancher/k3s
- /var/lib/kubelet/pods
- /var/lib/kubelet/plugins
- /run/netns/cni-
loop_control: loop_control:
loop_var: mounted_fs loop_var: mounted_fs
@ -35,9 +38,19 @@
- "{{ systemd_dir }}/k3s.service" - "{{ systemd_dir }}/k3s.service"
- "{{ systemd_dir }}/k3s-node.service" - "{{ systemd_dir }}/k3s-node.service"
- /etc/rancher/k3s - /etc/rancher/k3s
- /run/k3s
- /run/flannel
- /etc/rancher/
- /var/lib/kubelet - /var/lib/kubelet
- /var/lib/rancher/k3s - /var/lib/rancher/k3s
- /var/lib/rancher/
- /usr/local/bin/k3s
- /var/lib/cni/
- name: daemon_reload - name: daemon_reload
systemd: systemd:
daemon_reload: yes daemon_reload: yes
- name: Reboot and wait for node to come back up
reboot:
reboot_timeout: 3600