setup docker / kvm2 for minikube usage
This commit is contained in:
parent
2f940bc682
commit
eef4f59aa6
|
@ -5,9 +5,16 @@
|
|||
networking.firewall.allowedTCPPorts = [ 6443 ];
|
||||
services.k3s.enable = true;
|
||||
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.libvert.enable = true;
|
||||
users.users.anish.extraGroups = [ "libvert" "docker" ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue