Description

This is a snap of k3s, a fully conformant production-ready Kubernetes distribution.

Install

To install the snap from the store use:

snap install k3s-dbruno --edge --devmode

After installation a couple of small tweaks are required:

Alternatively, you can download the install-k3s-dbruno.sh script and run on your host:

sudo wget https://raw.githubusercontent.com/dbruno74/k3s-dbruno/main/install-k3s-dbruno.sh chmod 755 install-k3s-dbruno.sh ./install-k3s-dbruno.sh

Note: if your host is Ubuntu Core, wget is not available, you can use wget-simosx snap instead

snap install wget-simosx

Run

k3s server

Just start the k3s-daemon service

snap start k3s-dbruno.k3s-daemon

k3s will be launched with the "server" parameter. In case you want to change the k3s service command line, use snap set

snap set k3s-dbruno k3s-cmd-line="server --node-name k3s-server"

To print k3s daemon logs:

snap logs k3s-dbruno.k3s-daemon -f

To stop the server:

snap stop k3s-dbruno.k3s-daemon

k3s agent

Set the k3s daemon command line first

snap set k3s-dbruno k3s-cmd-line="agent --server https://

To get the k3s server token, login to k3s server at , then:

sudo cat /var/snap/k3s/current/var/lib/rancher/k3s/server/token

Then start the k3s-daemon service

snap start k3s-dbruno.k3s-daemon

To print k3s daemon logs:

snap logs k3s-dbruno.k3s-daemon -f

To stop the server:

snap stop k3s-dbruno.k3s-daemon

Contribute

Please contribute on github: https://github.com/dbruno74/k3s-dbruno

Screenshots

Get it from the Snap Store

Search for another snap, or go back to the homepage.
An error has occurred. This application may no longer respond until reloaded. Reload 🗙