From 4bf41a9d5ec51eca762a533825bff59db9ef0358 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 13 Apr 2023 22:10:05 -0400 Subject: [PATCH] Try to add a sidecar for ldap auth to znc --- cluster/apps/irc/znc/helm-release.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/cluster/apps/irc/znc/helm-release.yaml b/cluster/apps/irc/znc/helm-release.yaml index bcc00d2..4d79b79 100644 --- a/cluster/apps/irc/znc/helm-release.yaml +++ b/cluster/apps/irc/znc/helm-release.yaml @@ -15,6 +15,9 @@ spec: namespace: flux-system values: + podLabels: + needsAuthentik: "yes" + # Add init container for pulling znc modules and putting them into the modules directory initContainers: pull-module-source: @@ -31,6 +34,14 @@ spec: repository: znc tag: latest + sidecars: + saslauthd-sidecar: + image: dweomer/saslauthd:latest + args: ["-O", "/znc-data/saslauthd.conf"] + volumeMounts: + - mountPath: /znc-data + name: config + env: TZ: America/New_York PGID: "1000" @@ -69,6 +80,14 @@ spec: hostPath: /mnt/MainPool/Kubernetes/znc mountPath: /znc-data + # This shared directory is used to share the unix socket between znc and saslauth + shared: + enabled: true + type: emptyDir + mountPath: /var/run/saslauthd/ + medium: Memory + sizeLimit: 512Mi # Should be way more than enough + resources: requests: cpu: 1m