k3s: init

This commit is contained in:
Erwin Boskma 2024-01-02 22:41:05 +01:00
parent 4224240da0
commit 4e8d440a67
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

17
modules/k3s/default.nix Normal file
View file

@ -0,0 +1,17 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.eboskma.k3s;
in
{
options.eboskma.k3s = { enable = mkEnableOption "k3s"; };
config = mkIf cfg.enable {
services.k3s = {
enable = true;
extraFlags = "--tls-san=10.0.0.4 --tls-san=100.106.117.132";
};
environment.systemPackages = with pkgs; [ kubectl kubernetes-helm ];
};
}