helm/hosts/profiles/kuberenetes/default.nix
2023-05-16 00:19:52 +10:00

21 lines
583 B
Nix

{ pkgs, ... }:
{
# k3s
networking.firewall.allowedTCPPorts = [ 6443 ];
services.k3s.enable = false;
services.k3s.role = "server";
services.k3s.clusterInit = true;
# services.k3s.extraFlags = toString [
# "--kubelet-arg=v=4" # Optionally add additional args to k3s
# ];
environment.systemPackages = [ pkgs.k3s pkgs.kubernetes-helm ];
# minikube on docker
virtualisation.docker.enable = true;
virtualisation.docker.storageDriver = "btrfs";
# or use kvm
#virtualisation.libvrt.enable = true;
users.users.anish.extraGroups = [ "docker" ]; # "libvert"
}