diff --git a/thelounge/config.yaml b/thelounge/config.yaml new file mode 100644 index 0000000..f0cf564 --- /dev/null +++ b/thelounge/config.yaml @@ -0,0 +1,26 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: thelounge-config + namespace: irc +data: + config.js: | + module.exports = { + public: false, + reverseProxy: true, + port: 9000, + + messageStorage: ["sqlite"], + storagePolicy: { + enabled: true, + maxAgeDays: 365, + deletionPolicy: "statusOnly", + }, + + ldap: { + enable: true, + url: "ldap://ak-outpost-ldap-outpost.auth.svc.cluster.local", + primaryKey: "cn", + baseDN: "ou=users,dc=farh,dc=net", + }, + }; diff --git a/thelounge/kustomization.yaml b/thelounge/kustomization.yaml index adce6b4..902b09c 100644 --- a/thelounge/kustomization.yaml +++ b/thelounge/kustomization.yaml @@ -5,3 +5,4 @@ resources: - service.yaml - httproute.yaml - authorizationpolicy.yaml + - config.yaml diff --git a/thelounge/statefulset.yaml b/thelounge/statefulset.yaml index 724f1ce..59b0d2e 100644 --- a/thelounge/statefulset.yaml +++ b/thelounge/statefulset.yaml @@ -62,6 +62,10 @@ spec: volumeMounts: - name: config mountPath: /var/opt/thelounge + - name: thelounge-config + mountPath: /var/opt/thelounge/config.js + subPath: config.js + readOnly: true resources: requests: cpu: "100m" @@ -86,6 +90,10 @@ spec: periodSeconds: 5 timeoutSeconds: 1 failureThreshold: 3 + volumes: + - name: thelounge-config + configMap: + name: thelounge-config volumeClaimTemplates: - metadata: name: config