⬆️ 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,25 +27,32 @@ 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:
type: statefulset
annotations: annotations:
reloader.stakater.com/auto: "true" 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: image:
repository: ghcr.io/auricom/kresus repository: ghcr.io/auricom/kresus
tag: 0.19.4@sha256:c5a298a36a7467e731120781916fb27ff8ebbfeefddbaf33723483c15787bf5a tag: 0.19.4@sha256:c5a298a36a7467e731120781916fb27ff8ebbfeefddbaf33723483c15787bf5a
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
service:
main:
ports:
http:
port: 9876
env: env:
HOST: 0.0.0.0 HOST: 0.0.0.0
PORT: 9876 PORT: 9876
@@ -60,27 +67,28 @@ spec:
KRESUS_PYTHON_EXEC: python3 KRESUS_PYTHON_EXEC: python3
KRESUS_WOOB_DIR: /woob KRESUS_WOOB_DIR: /woob
NODE_ENV: production NODE_ENV: production
envFrom: envFrom: *envFrom
- secretRef: resources:
name: kresus-secret requests:
persistence: cpu: 100m
config: memory: 256Mi
enabled: true statefulset:
existingClaim: kresus-config volumeClaimTemplates:
mountPath: /config - name: config
woob: accessMode: ReadWriteOnce
enabled: true size: 1Gi
type: emptyDir storageClass: rook-ceph-block
mountPath: /mnt/woob globalMounts:
podSecurityContext: - path: /config
runAsUser: 568 service:
runAsGroup: 568 main:
fsGroup: 568 ports:
fsGroupChangePolicy: "OnRootMismatch" http:
port: 9876
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