⬆️ 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:
spec:
chart: app-template
version: 1.5.1
version: 2.0.3
sourceRef:
kind: HelmRepository
name: bjw-s
@@ -27,25 +27,32 @@ spec:
uninstall:
keepHistory: false
values:
initContainers:
01-init-db:
image: ghcr.io/auricom/postgres-init:15.4
imagePullPolicy: IfNotPresent
envFrom:
- secretRef:
name: kresus-secret
controller:
defaultPodOptions:
securityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
controllers:
main:
type: statefulset
annotations:
reloader.stakater.com/auto: "true"
initContainers:
init-db:
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
service:
main:
ports:
http:
port: 9876
env:
HOST: 0.0.0.0
PORT: 9876
@@ -60,27 +67,28 @@ spec:
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"
envFrom: *envFrom
resources:
requests:
cpu: 100m
memory: 256Mi
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 1Gi
storageClass: rook-ceph-block
globalMounts:
- path: /config
service:
main:
ports:
http:
port: 9876
ingress:
main:
enabled: true
ingressClassName: "nginx"
className: "nginx"
annotations:
auth.home.arpa/enabled: "true"
hajimari.io/icon: mdi:cash
@@ -88,11 +96,15 @@ spec:
- host: &host "cash.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
pathType: Prefix
service:
name: main
port: http
tls:
- hosts:
- *host
resources:
requests:
cpu: 100m
memory: 256Mi
persistence:
woob:
enabled: true
type: emptyDir
globalMounts:
- path: /mnt/woob