k3s-ansible icon indicating copy to clipboard operation
k3s-ansible copied to clipboard

Update k3s_version to v1.19.2+k3s1 (or whatever's latest)

Open geerlingguy opened this issue 5 years ago • 3 comments

It would be nice to get off 1.17 (which is the current version this playbook installs), but there is one caveat—at least in some testing from @alexellis—it seems that K3s 1.19 may have issues running on older Pis like the Pi 3 B+ due to network timeouts or disk IO speed (see https://github.com/rancher/k3s/issues/2353).

geerlingguy avatar Oct 07 '20 14:10 geerlingguy

For those of us that want to test the newer version, that should be as simple as changing

k3s_version: v1.17.5+k3s1

In inventory/sample/group_vars/all.yml correct? I don't see any version specific configurations, to my knowledge so far, in any of the roles.

mfonner avatar Oct 24 '20 03:10 mfonner

I don't know if this is something that would be interesting for this project, but I made it automatically update my cluster to the latest stable via these ansible tasks:

- name: Get latest k3s version
  uri:
    url: https://update.k3s.io/v1-release/channels/latest
    follow_redirects: 'yes'
  register: response

- name: Download k3s binary version {{ response.url.split('/')[-1] }} (x86_64)
  become: yes
  when: ansible_facts['architecture'] == "x86_64"
  get_url:
    url: "https://github.com/rancher/k3s/releases/download/{{ response.url.split('/')[-1] }}/k3s"
    dest: /usr/local/bin/k3s
    owner: root
    group: root
    mode: '0755'
    force: yes

Maybe we could make the channel a variable? 🤔

nicklasfrahm avatar Oct 24 '20 11:10 nicklasfrahm

How about an option to setup automatic upgrades through k3s itself?

Roming22 avatar Dec 30 '20 16:12 Roming22

At this point, K3s on PI 3+ typically requires either: A) sqlite, with no possibility of HA B) An SSD or something like a RasPiKey, with K3s running etcd

The default version has now been bumped to v1.25.5+k3s2, I will likely bump again to v1.26 since 1.25 is EOL soon.

dereknola avatar Nov 09 '23 17:11 dereknola