2024-06-15 19:37:56 +00:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
2023-04-13 17:12:47 +00:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: znc
|
|
|
|
namespace: irc
|
|
|
|
spec:
|
|
|
|
interval: 5m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-08-29 17:22:12 +00:00
|
|
|
version: 3.4.x
|
2023-04-13 17:12:47 +00:00
|
|
|
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:
|
2024-07-22 22:02:10 +00:00
|
|
|
image: alpine:3.20.2
|
2023-04-14 00:36:56 +00:00
|
|
|
command:
|
|
|
|
- "sh"
|
|
|
|
- "-c"
|
2023-06-17 04:02:34 +00:00
|
|
|
- "rm -f /znc-data/modules/ctcp_notifier.*; wget https://raw.githubusercontent.com/Zarthus/znc-modules/master/ctcp_notifier.cpp -P /znc-data/modules; rm -f /znc-data/modules/push.*; wget https://raw.githubusercontent.com/SeanOMik/znc-push/master/push.cpp -P /znc-data/modules"
|
2023-04-14 00:36:56 +00:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /znc-data
|
|
|
|
name: config
|
2023-04-13 18:10:26 +00:00
|
|
|
|
2023-04-13 17:12:47 +00:00
|
|
|
image:
|
2023-06-17 18:49:31 +00:00
|
|
|
repository: znc
|
2024-07-03 19:02:25 +00:00
|
|
|
tag: "1.9.1"
|
2023-04-13 18:10:26 +00:00
|
|
|
|
2023-04-13 17:12:47 +00:00
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
http:
|
|
|
|
port: 6501
|
2023-06-17 18:49:31 +00:00
|
|
|
irc:
|
|
|
|
enabled: true
|
|
|
|
type: NodePort
|
|
|
|
ports:
|
|
|
|
irc:
|
|
|
|
enabled: true
|
|
|
|
port: 6667
|
|
|
|
protocol: TCP
|
|
|
|
nodePort: 30652
|
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:
|
2023-04-15 05:17:55 +00:00
|
|
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
2023-04-13 17:12:47 +00:00
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
|
hosts:
|
|
|
|
- host: &host "znc.${SECRET_NEW_DOMAIN}"
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- *host
|
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
|
|
|
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 1m
|
2023-06-26 23:16:32 +00:00
|
|
|
memory: 40Mi
|
2023-04-13 17:12:47 +00:00
|
|
|
limits:
|
2023-06-26 23:11:16 +00:00
|
|
|
memory: 1Gi # this will likely not happen during normal running, but compiling modules requires this
|