Try to add a sidecar for ldap auth to znc

This commit is contained in:
SeanOMik 2023-04-13 22:10:05 -04:00
parent f27e77256a
commit 4bf41a9d5e
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
1 changed files with 19 additions and 0 deletions

View File

@ -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