K3s: Difference between revisions

imported>Bsima
imported>Bsima
add k3s package & sudo
Line 12: Line 12:
     # "--kubelet-arg=v=4" # Optionally add additional args to k3s
     # "--kubelet-arg=v=4" # Optionally add additional args to k3s
   ];
   ];
  environment.systemPackages = [ pkgs.k3s ];
}
}
</syntaxHighlight>
</syntaxHighlight>


After enabling you can access your cluster through <code>k3s kubectl</code> i.e. <code>k3s kubectl cluster-info</code>, or by using the generated kubeconfig file in <code>/etc/rancher/k3s/k3s.yaml</code>
After enabling, you can access your cluster through <code>sudo k3s kubectl</code> i.e. <code>sudo k3s kubectl cluster-info</code>, or by using the generated kubeconfig file in <code>/etc/rancher/k3s/k3s.yaml</code>


== ZFS support ==
== ZFS support ==