⬆️ kresus app-template v2

This commit is contained in:
auricom
2023-11-02 16:59:18 +01:00
parent 0bfbb5b46b
commit bff9a44491

View File

@@ -10,7 +10,7 @@ spec:
chart: chart:
spec: spec:
chart: app-template chart: app-template
version: 1.5.1 version: 2.0.3
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: bjw-s name: bjw-s
@@ -27,60 +27,68 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
initContainers: defaultPodOptions:
01-init-db: securityContext:
image: ghcr.io/auricom/postgres-init:15.4 runAsUser: 568
imagePullPolicy: IfNotPresent runAsGroup: 568
envFrom: fsGroup: 568
- secretRef: fsGroupChangePolicy: OnRootMismatch
name: kresus-secret controllers:
controller: main:
annotations: type: statefulset
reloader.stakater.com/auto: "true" annotations:
image: reloader.stakater.com/auto: "true"
repository: ghcr.io/auricom/kresus initContainers:
tag: 0.19.4@sha256:c5a298a36a7467e731120781916fb27ff8ebbfeefddbaf33723483c15787bf5a init-db:
imagePullPolicy: IfNotPresent image:
repository: ghcr.io/auricom/postgres-init
tag: 15.4@sha256:83e1abf06be5741bdfb8cb53fc03a1ade6e6b5ec7b92a8aac0c69ba5dc7e51f0
pullPolicy: IfNotPresent
envFrom: &envFrom
- secretRef:
name: kresus-secret
containers:
main:
image:
repository: ghcr.io/auricom/kresus
tag: 0.19.4@sha256:c5a298a36a7467e731120781916fb27ff8ebbfeefddbaf33723483c15787bf5a
imagePullPolicy: IfNotPresent
env:
HOST: 0.0.0.0
PORT: 9876
LC_ALL: C.UTF-8
LANG: C.UTF-8
KRESUS_DB_TYPE: postgres
KRESUS_DIR: /config
KRESUS_EMAIL_HOST: mailrise.default.svc.cluster.local
KRESUS_EMAIL_PORT: 8025
KRESUS_EMAIL_TRANSPORT: smtp
KRESUS_EMAIL_FROM: kresus@mailrise.home.arpa
KRESUS_PYTHON_EXEC: python3
KRESUS_WOOB_DIR: /woob
NODE_ENV: production
envFrom: *envFrom
resources:
requests:
cpu: 100m
memory: 256Mi
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 1Gi
storageClass: rook-ceph-block
globalMounts:
- path: /config
service: service:
main: main:
ports: ports:
http: http:
port: 9876 port: 9876
env:
HOST: 0.0.0.0
PORT: 9876
LC_ALL: C.UTF-8
LANG: C.UTF-8
KRESUS_DB_TYPE: postgres
KRESUS_DIR: /config
KRESUS_EMAIL_HOST: mailrise.default.svc.cluster.local
KRESUS_EMAIL_PORT: 8025
KRESUS_EMAIL_TRANSPORT: smtp
KRESUS_EMAIL_FROM: kresus@mailrise.home.arpa
KRESUS_PYTHON_EXEC: python3
KRESUS_WOOB_DIR: /woob
NODE_ENV: production
envFrom:
- secretRef:
name: kresus-secret
persistence:
config:
enabled: true
existingClaim: kresus-config
mountPath: /config
woob:
enabled: true
type: emptyDir
mountPath: /mnt/woob
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: "OnRootMismatch"
ingress: ingress:
main: main:
enabled: true enabled: true
ingressClassName: "nginx" className: "nginx"
annotations: annotations:
auth.home.arpa/enabled: "true" auth.home.arpa/enabled: "true"
hajimari.io/icon: mdi:cash hajimari.io/icon: mdi:cash
@@ -88,11 +96,15 @@ spec:
- host: &host "cash.${SECRET_CLUSTER_DOMAIN}" - host: &host "cash.${SECRET_CLUSTER_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix service:
name: main
port: http
tls: tls:
- hosts: - hosts:
- *host - *host
resources: persistence:
requests: woob:
cpu: 100m enabled: true
memory: 256Mi type: emptyDir
globalMounts:
- path: /mnt/woob