add k8s config for k3s and minikube to curve

This commit is contained in:
Anish Lakhwara 2023-05-04 23:09:47 +10:00
parent b595688a65
commit cc547e7da3
2 changed files with 14 additions and 0 deletions

View file

@ -13,6 +13,7 @@
../profiles/mimetypes
../profiles/syncthing
../profiles/mossnet-hosts
../profiles/kuberenetes
];
# home-manager.users.anish = import ../../home/gui;

View file

@ -0,0 +1,13 @@
{ pkgs, ... }:
{
# k3s
networking.firewall.allowedTCPPorts = [ 6443 ];
services.k3s.enable = true;
services.k3s.role = "server";
# services.k3s.extraFlags = toString [
# "--kubelet-arg=v=4" # Optionally add additional args to k3s
# ];
environment.systemPackages = [ pkgs.k3s pkgs.kubernetes-helm ];
}