Skip to content

Commit

Permalink
Upgrade kube-vpi; improve settings; better reset (techno-tim#31)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
timothystewart6 committed May 26, 2022
1 parent 5bf61c8 commit e1a0298
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
<!--- Provide a general summary of the issue in the Title above -->

## Expected Behavior

<!--- Tell us what should happen -->

## Current Behavior
<!--- Tell us what happens instead of the expected behavior -->

## Steps to Reproduce

<!--- reproduce this bug. Include code to reproduce, if relevant -->

1.
2.
3.
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

### Troubleshooting

Be sure to see [this post](https://github.com/techno-tim/k3s-ansible/discussions/20) on how to troubleshoot common problems

### 🔷 Vagrant

You may want to kickstart your k3s cluster by using Vagrant to quickly build you all needed VMs with one command.
Expand All @@ -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:

* [k3s-io/k3s-ansible](https://github.com/k3s-io/k3s-ansible)
* [geerlingguy/turing-pi-cluster](https://github.com/geerlingguy/turing-pi-cluster)
* [212850a/k3s-ansible](https://github.com/212850a/k3s-ansible)
- [k3s-io/k3s-ansible](https://github.com/k3s-io/k3s-ansible)
- [geerlingguy/turing-pi-cluster](https://github.com/geerlingguy/turing-pi-cluster)
- [212850a/k3s-ansible](https://github.com/212850a/k3s-ansible)
2 changes: 1 addition & 1 deletion inventory/sample/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extra_server_args: "--no-deploy servicelb --no-deploy traefik"
extra_agent_args: ""

# image tag for kube-vip
kube_vip_tag_version: "v0.4.3"
kube_vip_tag_version: "v0.4.4"

# image tag for metal lb
metal_lb_speaker_tag_version: "v0.12.1"
Expand Down
8 changes: 4 additions & 4 deletions roles/k3s/master/templates/vip.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ spec:
- name: vip_ddns
value: "false"
- name: svc_enable
value: "true"
value: "false"
- name: vip_leaderelection
value: "true"
- name: vip_leaseduration
value: "5"
value: "15"
- name: vip_renewdeadline
value: "3"
value: "10"
- name: vip_retryperiod
value: "1"
value: "2"
- name: address
value: {{ apiserver_endpoint }}
image: ghcr.io/kube-vip/kube-vip:{{ kube_vip_tag_version }}
Expand Down
13 changes: 13 additions & 0 deletions roles/reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
- /var/lib/kubelet
- /run/netns
- /var/lib/rancher/k3s
- /var/lib/kubelet/pods
- /var/lib/kubelet/plugins
- /run/netns/cni-
loop_control:
loop_var: mounted_fs

Expand All @@ -35,9 +38,19 @@
- "{{ systemd_dir }}/k3s.service"
- "{{ systemd_dir }}/k3s-node.service"
- /etc/rancher/k3s
- /run/k3s
- /run/flannel
- /etc/rancher/
- /var/lib/kubelet
- /var/lib/rancher/k3s
- /var/lib/rancher/
- /usr/local/bin/k3s
- /var/lib/cni/

- name: daemon_reload
systemd:
daemon_reload: yes

- name: Reboot and wait for node to come back up
reboot:
reboot_timeout: 3600

0 comments on commit e1a0298

Please sign in to comment.