diff options
author | sinanmohd <sinan@sinanmohd.com> | 2025-09-10 08:36:11 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2025-09-10 08:36:23 +0530 |
commit | e9e51be6d7a149fbd122db51d6a2bf2673f12827 (patch) | |
tree | 844f6287f46d49b122bc474fc24bf6a69c28d2ad /os/pc/modules | |
parent | ca2abeed1f96d1b58a9b40c7402ebf8b94e6891d (diff) |
Diffstat (limited to 'os/pc/modules')
-rw-r--r-- | os/pc/modules/work/default.nix (renamed from os/pc/modules/work.nix) | 12 | ||||
-rw-r--r-- | os/pc/modules/work/traefik-daemonset.yaml | 12 |
2 files changed, 23 insertions, 1 deletions
diff --git a/os/pc/modules/work.nix b/os/pc/modules/work/default.nix index 58aa4e0..5124ade 100644 --- a/os/pc/modules/work.nix +++ b/os/pc/modules/work/default.nix @@ -25,13 +25,23 @@ in ]; }; services.k3s = { - gracefulNodeShutdown.enable = true; enable = true; + gracefulNodeShutdown.enable = true; clusterInit = true; role = "server"; extraFlags = [ "--write-kubeconfig-group users" "--write-kubeconfig-mode 0640" + # disabled because some wifi won't have IPv6 (2025 edition), and k3s fails on startup + # uncomment this to enble IPv6 ingress when humanity transcends + # "--cluster-cidr=10.42.0.0/16,fd12:b0d8:b00b::/56" + # "--service-cidr=10.43.0.0/16,fd12:b0d8:babe::/112" + # "--flannel-ipv6-masq" ]; + manifests.traefik-daemonset = { + enable = true; + source = ./traefik-daemonset.yaml; + target = "traefik-daemonset.yaml"; + }; }; } diff --git a/os/pc/modules/work/traefik-daemonset.yaml b/os/pc/modules/work/traefik-daemonset.yaml new file mode 100644 index 0000000..e90e9ec --- /dev/null +++ b/os/pc/modules/work/traefik-daemonset.yaml @@ -0,0 +1,12 @@ +apiVersion: helm.cattle.io/v1 +kind: HelmChartConfig +metadata: + name: traefik + namespace: kube-system +spec: + valuesContent: |- + deployment: + kind: DaemonSet + service: + spec: + externalTrafficPolicy: Local |