Use a single docker image with built-in ldap for znc

This commit is contained in:
SeanOMik 2023-04-13 23:55:25 -04:00
parent 76ea851eee
commit 7941f0f466
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
1 changed files with 2 additions and 25 deletions

View File

@ -31,24 +31,9 @@ spec:
name: config
image:
repository: znc
repository: ghcr.io/seanomik/docker-znc-ldap
tag: latest
sidecars:
saslauthd-sidecar:
image: dweomer/saslauthd:latest
args: ["-a", "ldap", "-d", "1", "-O", "/znc-data/saslauthd.conf"]
volumeMounts:
- mountPath: /znc-data
name: config
- mountPath: /var/run/saslauthd
name: saslauthd-socket
env:
TZ: America/New_York
PGID: "1000"
PUID: "1000"
service:
main:
ports:
@ -64,7 +49,7 @@ spec:
enabled: true
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
# traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
hosts:
- host: &host "znc.${SECRET_NEW_DOMAIN}"
paths:
@ -82,14 +67,6 @@ spec:
hostPath: /mnt/MainPool/Kubernetes/znc
mountPath: /znc-data
# This shared directory is used to share the unix socket between znc and saslauth
saslauthd-socket:
enabled: true
type: emptyDir
mountPath: /var/run/saslauthd/
medium: Memory
sizeLimit: 512Mi # Should be way more than enough
resources:
requests:
cpu: 1m