2022-07-30 13:18:35 +00:00
|
|
|
image:
|
2023-11-17 10:22:57 +00:00
|
|
|
repository: tombursch/kitchenowl-web
|
2022-07-30 13:18:35 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2024-04-04 18:24:15 +00:00
|
|
|
tag: latest@sha256:39eb0799431717a71d77a5dcef7360008822a211a8b73a509c77fa221665394b
|
2022-07-30 13:18:35 +00:00
|
|
|
backendImage:
|
2023-11-18 10:48:35 +00:00
|
|
|
repository: tombursch/kitchenowl
|
2022-07-30 13:18:35 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2024-04-04 18:24:15 +00:00
|
|
|
tag: latest@sha256:c09893c67ef05ba089567f35a4758dbd0a0ba36cfec597b7dbb95d824a9136fd
|
2024-01-12 23:37:04 +00:00
|
|
|
|
2022-07-30 13:18:35 +00:00
|
|
|
service:
|
|
|
|
main:
|
2023-08-10 07:27:45 +00:00
|
|
|
enabled: true
|
2024-01-12 23:37:04 +00:00
|
|
|
# Target frontend pod
|
|
|
|
targetSelector: frontend
|
2022-07-30 13:18:35 +00:00
|
|
|
ports:
|
|
|
|
main:
|
2023-08-10 07:27:45 +00:00
|
|
|
enabled: true
|
2024-01-12 23:37:04 +00:00
|
|
|
# Target frontend container
|
|
|
|
targetSelector: frontend
|
2023-04-11 10:07:17 +00:00
|
|
|
protocol: http
|
2022-07-30 13:18:35 +00:00
|
|
|
targetPort: 80
|
|
|
|
port: 10246
|
|
|
|
backend:
|
2023-08-10 07:27:45 +00:00
|
|
|
enabled: true
|
2024-01-12 23:37:04 +00:00
|
|
|
# Target main(backend) pod
|
|
|
|
targetSelector: main
|
2023-08-10 07:27:45 +00:00
|
|
|
ports:
|
|
|
|
backend:
|
|
|
|
enabled: true
|
2024-01-12 23:37:04 +00:00
|
|
|
# Target main(backend) container
|
|
|
|
targetSelector: main
|
2023-08-10 07:27:45 +00:00
|
|
|
protocol: http
|
|
|
|
targetPort: 5000
|
|
|
|
port: 10247
|
2024-01-12 23:37:04 +00:00
|
|
|
|
2022-07-30 13:18:35 +00:00
|
|
|
persistence:
|
|
|
|
data:
|
|
|
|
enabled: true
|
2023-08-10 07:27:45 +00:00
|
|
|
targetSelector:
|
2024-01-12 23:37:04 +00:00
|
|
|
main:
|
|
|
|
main:
|
2023-08-10 07:27:45 +00:00
|
|
|
mountPath: /data
|
2024-01-12 23:37:04 +00:00
|
|
|
|
2022-08-08 21:25:02 +00:00
|
|
|
portal:
|
2023-04-11 10:07:17 +00:00
|
|
|
open:
|
|
|
|
enabled: true
|
2024-01-12 23:37:04 +00:00
|
|
|
|
2023-04-11 10:07:17 +00:00
|
|
|
securityContext:
|
|
|
|
container:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsNonRoot: false
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
2024-01-12 23:37:04 +00:00
|
|
|
|
2023-04-11 10:07:17 +00:00
|
|
|
workload:
|
|
|
|
main:
|
2023-08-10 07:27:45 +00:00
|
|
|
enabled: true
|
2024-01-12 23:37:04 +00:00
|
|
|
primary: true
|
2023-08-10 07:27:45 +00:00
|
|
|
type: Deployment
|
|
|
|
podSpec:
|
|
|
|
containers:
|
2024-01-12 23:37:04 +00:00
|
|
|
main:
|
|
|
|
# Backend
|
2023-08-10 07:27:45 +00:00
|
|
|
enabled: true
|
|
|
|
primary: true
|
|
|
|
imageSelector: backendImage
|
|
|
|
env:
|
2024-01-12 23:37:04 +00:00
|
|
|
FRONT_URL: ""
|
2024-01-03 21:13:29 +00:00
|
|
|
OIDC_ISSUER: ""
|
|
|
|
OIDC_CLIENT_ID: ""
|
|
|
|
OIDC_CLIENT_SECRET: ""
|
|
|
|
APPLE_CLIENT_ID: ""
|
|
|
|
APPLE_CLIENT_SECRET: ""
|
|
|
|
GOOGLE_CLIENT_ID: ""
|
|
|
|
GOOGLE_CLIENT_SECRET: ""
|
2023-08-10 07:27:45 +00:00
|
|
|
JWT_SECRET_KEY:
|
|
|
|
secretKeyRef:
|
|
|
|
name: kitchenowl-secrets
|
|
|
|
key: JWT_SECRET_KEY
|
2024-01-12 23:37:04 +00:00
|
|
|
STORAGE_PATH: "{{ .Values.persistence.data.targetSelector.main.main.mountPath }}"
|
2023-08-10 07:27:45 +00:00
|
|
|
DB_DRIVER: "postgresql"
|
|
|
|
DB_HOST:
|
|
|
|
secretKeyRef:
|
|
|
|
name: cnpg-main-urls
|
|
|
|
key: host
|
|
|
|
DB_NAME: "{{ .Values.cnpg.main.database }}"
|
|
|
|
DB_USER: "{{ .Values.cnpg.main.user }}"
|
|
|
|
DB_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: cnpg-main-user
|
|
|
|
key: password
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
enabled: true
|
2024-01-12 23:37:04 +00:00
|
|
|
type: exec
|
2023-08-10 07:27:45 +00:00
|
|
|
port: "{{ .Values.service.backend.ports.backend.targetPort }}"
|
2024-01-12 23:37:04 +00:00
|
|
|
command:
|
|
|
|
- uwsgi_curl
|
|
|
|
- localhost:5000
|
|
|
|
- /api/health/8M4F88S8ooi4sMbLBfkkV7ctWwgibW6V
|
2023-08-10 07:27:45 +00:00
|
|
|
readiness:
|
|
|
|
enabled: true
|
2024-01-12 23:37:04 +00:00
|
|
|
type: exec
|
2023-08-10 07:27:45 +00:00
|
|
|
port: "{{ .Values.service.backend.ports.backend.targetPort }}"
|
2024-01-12 23:37:04 +00:00
|
|
|
command:
|
|
|
|
- uwsgi_curl
|
|
|
|
- localhost:5000
|
|
|
|
- /api/health/8M4F88S8ooi4sMbLBfkkV7ctWwgibW6V
|
2023-08-10 07:27:45 +00:00
|
|
|
startup:
|
|
|
|
enabled: true
|
|
|
|
type: tcp
|
|
|
|
port: "{{ .Values.service.backend.ports.backend.targetPort }}"
|
2024-01-12 23:37:04 +00:00
|
|
|
frontend:
|
|
|
|
enabled: true
|
|
|
|
type: Deployment
|
|
|
|
strategy: RollingUpdate
|
|
|
|
replicas: 1
|
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
frontend:
|
|
|
|
enabled: true
|
|
|
|
primary: true
|
|
|
|
env:
|
|
|
|
BACK_URL: '{{ printf "%s-backend:%v" (include "tc.v1.common.lib.chart.names.fullname" $) .Values.service.backend.ports.backend.port }}'
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
type: http
|
|
|
|
path: /
|
|
|
|
port: "{{ .Values.service.main.ports.main.targetPort }}"
|
|
|
|
readiness:
|
|
|
|
type: http
|
|
|
|
path: /
|
|
|
|
port: "{{ .Values.service.main.ports.main.targetPort }}"
|
|
|
|
startup:
|
|
|
|
type: tcp
|
|
|
|
port: "{{ .Values.service.main.ports.main.targetPort }}"
|
2023-08-10 07:27:45 +00:00
|
|
|
# Enabled postgres
|
|
|
|
cnpg:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
user: kitchenowl
|
|
|
|
database: kitchenowl
|