2023-04-13 17:12:47 +00:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: znc
|
|
|
|
namespace: irc
|
|
|
|
spec:
|
|
|
|
interval: 5m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
|
|
|
version: 1.3.x
|
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjws-charts
|
|
|
|
namespace: flux-system
|
|
|
|
|
|
|
|
values:
|
2023-04-14 02:10:05 +00:00
|
|
|
podLabels:
|
|
|
|
needsAuthentik: "yes"
|
|
|
|
|
2023-04-13 18:10:26 +00:00
|
|
|
# Add init container for pulling znc modules and putting them into the modules directory
|
|
|
|
initContainers:
|
2023-04-13 18:29:21 +00:00
|
|
|
pull-module-source:
|
2023-04-13 18:10:26 +00:00
|
|
|
image: alpine:latest
|
2023-04-14 00:36:56 +00:00
|
|
|
command:
|
|
|
|
- "sh"
|
|
|
|
- "-c"
|
|
|
|
- "rm -f /config/modules/ctcp_notifier.*; wget https://raw.githubusercontent.com/Zarthus/znc-modules/master/ctcp_notifier.cpp -P /config/modules"
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /znc-data
|
|
|
|
name: config
|
2023-04-13 18:10:26 +00:00
|
|
|
|
2023-04-13 17:12:47 +00:00
|
|
|
image:
|
2023-04-13 18:10:26 +00:00
|
|
|
repository: znc
|
2023-04-13 17:12:47 +00:00
|
|
|
tag: latest
|
2023-04-13 18:10:26 +00:00
|
|
|
|
2023-04-14 02:10:05 +00:00
|
|
|
sidecars:
|
|
|
|
saslauthd-sidecar:
|
|
|
|
image: dweomer/saslauthd:latest
|
|
|
|
args: ["-O", "/znc-data/saslauthd.conf"]
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /znc-data
|
|
|
|
name: config
|
|
|
|
|
2023-04-13 17:28:36 +00:00
|
|
|
env:
|
|
|
|
TZ: America/New_York
|
|
|
|
PGID: "1000"
|
|
|
|
PUID: "1000"
|
2023-04-13 18:10:26 +00:00
|
|
|
|
2023-04-13 17:12:47 +00:00
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
http:
|
|
|
|
port: 6501
|
2023-04-13 18:10:26 +00:00
|
|
|
|
2023-04-13 17:12:47 +00:00
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
enabled: false
|
2023-04-13 18:10:26 +00:00
|
|
|
|
2023-04-13 17:12:47 +00:00
|
|
|
ingress:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
annotations:
|
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
|
traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
|
|
|
|
hosts:
|
|
|
|
- host: &host "znc.${SECRET_NEW_DOMAIN}"
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- *host
|
|
|
|
secretName: wildcard-main-tls
|
2023-04-13 18:10:26 +00:00
|
|
|
|
2023-04-13 17:12:47 +00:00
|
|
|
persistence:
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /mnt/MainPool/Kubernetes/znc
|
2023-04-14 00:36:56 +00:00
|
|
|
mountPath: /znc-data
|
2023-04-13 17:12:47 +00:00
|
|
|
|
2023-04-14 02:10:05 +00:00
|
|
|
# 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
|
|
|
|
|
2023-04-13 17:12:47 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 1m
|
|
|
|
memory: 4Mi
|
|
|
|
limits:
|
2023-04-13 18:21:22 +00:00
|
|
|
memory: 200Mi
|