This commit is contained in:
Steffen
2025-04-11 07:44:12 +02:00
commit b2186d35a0
13 changed files with 479 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
{ pkgs, ... }: {
services.glusterfs = {
enable = true;
useRpcbind = true;
};
}
+57
View File
@@ -0,0 +1,57 @@
{config, pkgs, ... }:
let
my-kubernetes-helm = with pkgs; wrapHelm kubernetes-helm {
plugins = with pkgs.kubernetes-helmPlugins; [
helm-secrets
helm-diff
helm-s3
helm-git
];
};
my-helmfile = with pkgs; helmfile-wrapped.override {
inherit (my-kubernetes-helm.passthru) pluginsDir;
};
in
{ virtualisation.containerd.enable = true;
services.k3s = {
enable = true;
role = "server";
extraFlags = toString [
"--disable=servicelb"
"--disable=traefik"
"--flannel-backend=vxlan"
"--tls-san=local_ip"
"--node-external-ip=local_ip"
"--node-ip=local_ip"
"--advertise-address=local_ip"
];
token = "hehehehehehehehehehehehhe";
serverAddr = "https://local_ip:6443";
};
environment.systemPackages = with pkgs; [
k3s
my-kubernetes-helm
my-helmfile
openiscsi
kustomize
kubeseal
];
systemd.services.k3s = {
wants = [ "containerd.service" ];
after = [ "containerd.service" ];
};
systemd.tmpfiles.rules = [
"L+ /usr/local/bin - - - - /run/current-system/sw/bin/"
];
services.openiscsi = {
enable = true;
name = "${hostname}";
};
}
+37
View File
@@ -0,0 +1,37 @@
{...}:
{
services.zrepl = {
enable = true;
settings = {
global = {
logging = [{
# use syslog instead of stdout because it makes journald happy
type = "syslog";
format = "human";
level = "info";
}];
};
jobs = [{
type = "source";
name = "siredward_pull";
send = {
encrypted = true;
};
serve = {
type = "stdinserver";
client_identities = [ "siredward" ];
};
filesystems = {
"SERVICE/volumes" = true;
};
snapshotting = {
type = "periodic";
prefix = "SN_";
interval = "1h";
};
}];
};
};
}