add k3s
This commit is contained in:
parent
9007e968ea
commit
4934aad84d
2 changed files with 25 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./boot.nix
|
./boot.nix
|
||||||
|
./ess.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
|
|
||||||
24
hosts/ess-helm/services/ess.nix
Normal file
24
hosts/ess-helm/services/ess.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.k3s = {
|
||||||
|
enable = true;
|
||||||
|
role = "server";
|
||||||
|
extraFlags = toString [
|
||||||
|
"--disable traefik"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
kubectl
|
||||||
|
kubernetes-helm
|
||||||
|
];
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
# system.activationScripts.install-ess = {
|
||||||
|
# text = ''
|
||||||
|
# ${pkgs.kubernetes-helm}/bin/helm upgrade --install ess element-hq/element-server-suite -f /path/to/values.yaml -n ess --create-namespace
|
||||||
|
# '';
|
||||||
|
# deps = [ ];
|
||||||
|
# };
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue