K3s: Difference between revisions

From NixOS Wiki
imported>Mic92
describe single node setup
 
imported>Mic92
cleanup
Line 1: Line 1:
K3s is a easier to use version of kubernetes. It bundles all components of a kubernetes cluster into one single binary.
K3s is a easier to use version of kubernetes. It bundles all components of a kubernetes cluster into one single binary.


## Single node setup
== Single node setup ==


<syntaxHighlight>
<syntaxHighlight lang=nix>
{
{
   services.k3s.enable = true;
   services.k3s.enable = true;

Revision as of 20:46, 31 May 2021

K3s is a easier to use version of kubernetes. It bundles all components of a kubernetes cluster into one single binary.

Single node setup

{
  services.k3s.enable = true;
  services.k3s.role = "server";
  services.k3s.extraFlags = toString [
    "--flannel-backend=none"
  ];
}

After enabling you can access you cluster through k3s kubectl i.e. k3s kubectl cluster-info