2022-07-30 09:18:35 -04:00
|
|
|
image:
|
|
|
|
repository: tccr.io/truecharts/kitchenowl-web
|
|
|
|
pullPolicy: IfNotPresent
|
2023-11-16 14:39:20 -05:00
|
|
|
tag: latest@sha256:b1eb188149820d6b14d4d4cbb3485229397a57cc1241a13dd1562f1ab0392761
|
2022-07-30 09:18:35 -04:00
|
|
|
backendImage:
|
|
|
|
repository: tccr.io/truecharts/kitchenowl-backend
|
|
|
|
pullPolicy: IfNotPresent
|
2023-11-16 14:39:20 -05:00
|
|
|
tag: latest@sha256:5ce539a5878a534d53b61536e10a1f87ff7a2adecc9e2626674911d451638ca3
|
2023-08-10 03:27:45 -04:00
|
|
|
|
2022-07-30 09:18:35 -04:00
|
|
|
service:
|
|
|
|
main:
|
2023-08-10 03:27:45 -04:00
|
|
|
enabled: true
|
|
|
|
targetSelector: main
|
2022-07-30 09:18:35 -04:00
|
|
|
ports:
|
|
|
|
main:
|
2023-08-10 03:27:45 -04:00
|
|
|
enabled: true
|
|
|
|
targetSelector: main
|
2023-04-11 06:07:17 -04:00
|
|
|
protocol: http
|
2022-07-30 09:18:35 -04:00
|
|
|
targetPort: 80
|
|
|
|
port: 10246
|
|
|
|
backend:
|
2023-08-10 03:27:45 -04:00
|
|
|
enabled: true
|
|
|
|
targetSelector: backend
|
|
|
|
ports:
|
|
|
|
backend:
|
|
|
|
enabled: true
|
|
|
|
targetSelector: backend
|
|
|
|
protocol: http
|
|
|
|
targetPort: 5000
|
|
|
|
port: 10247
|
|
|
|
|
2022-07-30 09:18:35 -04:00
|
|
|
persistence:
|
|
|
|
data:
|
|
|
|
enabled: true
|
2023-08-10 03:27:45 -04:00
|
|
|
targetSelector:
|
|
|
|
backend:
|
|
|
|
backend:
|
|
|
|
mountPath: /data
|
|
|
|
|
2022-08-08 17:25:02 -04:00
|
|
|
portal:
|
2023-04-11 06:07:17 -04:00
|
|
|
open:
|
|
|
|
enabled: true
|
2023-08-10 03:27:45 -04:00
|
|
|
|
2023-04-11 06:07:17 -04:00
|
|
|
securityContext:
|
|
|
|
container:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsNonRoot: false
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
2023-08-10 03:27:45 -04:00
|
|
|
|
2023-04-11 06:07:17 -04:00
|
|
|
workload:
|
|
|
|
main:
|
2023-08-10 03:27:45 -04:00
|
|
|
type: Deployment
|
|
|
|
strategy: RollingUpdate
|
|
|
|
replicas: 1
|
2023-04-11 06:07:17 -04:00
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
main:
|
2023-08-10 03:27:45 -04:00
|
|
|
enabled: true
|
|
|
|
primary: true
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: kitchenowl-config
|
2023-04-11 06:07:17 -04:00
|
|
|
env:
|
2023-08-10 03:27:45 -04:00
|
|
|
FRONT_URL: "{{ .Values.workload.main.podSpec.containers.main.env.FRONT_URL }}"
|
|
|
|
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: http
|
|
|
|
path: /
|
|
|
|
port: "{{ .Values.service.main.ports.main.targetPort }}"
|
|
|
|
backend:
|
|
|
|
enabled: true
|
|
|
|
type: Deployment
|
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
backend:
|
|
|
|
enabled: true
|
|
|
|
primary: true
|
|
|
|
imageSelector: backendImage
|
|
|
|
env:
|
|
|
|
FRONT_URL: "{{ .Values.workload.main.podSpec.containers.main.env.FRONT_URL }}"
|
|
|
|
# Changed port to 10248 to avoid conflict with frontend
|
|
|
|
HTTP_PORT: "10248"
|
|
|
|
JWT_SECRET_KEY:
|
|
|
|
secretKeyRef:
|
|
|
|
name: kitchenowl-secrets
|
|
|
|
key: JWT_SECRET_KEY
|
|
|
|
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
|
|
|
|
type: tcp
|
|
|
|
port: "{{ .Values.service.backend.ports.backend.targetPort }}"
|
|
|
|
readiness:
|
|
|
|
enabled: true
|
|
|
|
type: tcp
|
|
|
|
port: "{{ .Values.service.backend.ports.backend.targetPort }}"
|
|
|
|
startup:
|
|
|
|
enabled: true
|
|
|
|
type: tcp
|
|
|
|
port: "{{ .Values.service.backend.ports.backend.targetPort }}"
|
|
|
|
|
|
|
|
# Enabled postgres
|
|
|
|
cnpg:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
user: kitchenowl
|
|
|
|
database: kitchenowl
|