2022-04-01 03:18:18 -04:00
|
|
|
image:
|
2022-04-03 09:03:06 -04:00
|
|
|
repository: tccr.io/truecharts/ferdi-server
|
2022-07-25 14:36:51 -04:00
|
|
|
tag: v1.3.2@sha256:f8e0023f5bb616e08174af1030ea69364d2d85e5d3c393daf6f1f453a8a5a37e
|
2022-04-01 03:18:18 -04:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
|
|
|
securityContext:
|
2023-04-11 06:07:17 -04:00
|
|
|
container:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsNonRoot: false
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
2022-04-01 03:18:18 -04:00
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 10206
|
|
|
|
targetPort: 3333
|
|
|
|
|
2023-04-11 06:07:17 -04:00
|
|
|
workload:
|
|
|
|
main:
|
|
|
|
podSpec:
|
|
|
|
initContainers:
|
|
|
|
1-create-key-file:
|
|
|
|
enabled: true
|
|
|
|
type: install
|
|
|
|
imageSelector: image
|
|
|
|
env:
|
|
|
|
APP_KEY:
|
|
|
|
secretKeyRef:
|
|
|
|
name: secrets
|
|
|
|
key: APP_KEY
|
|
|
|
command: ["sh", "-c"]
|
|
|
|
args:
|
|
|
|
- |
|
|
|
|
keyfile="/app/data/FERDI_APP_KEY.txt";
|
|
|
|
if [ ! -f ${keyfile} ]; then
|
|
|
|
echo "No APP_KEY File...";
|
|
|
|
echo "Creating APP_KEY file...";
|
|
|
|
echo "${APP_KEY}" > ${keyfile};
|
|
|
|
if [ -f ${keyfile} ]; then
|
|
|
|
echo "Success!";
|
|
|
|
else
|
|
|
|
echo "Failed.";
|
|
|
|
fi;
|
|
|
|
else
|
|
|
|
echo "APP_KEY File exists. Skipping...";
|
|
|
|
fi;
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
path: "/health"
|
|
|
|
readiness:
|
|
|
|
path: "/health"
|
|
|
|
startup:
|
|
|
|
path: "/health"
|
|
|
|
env:
|
|
|
|
NODE_ENV: "production"
|
|
|
|
DATA_DIR: "/app/data"
|
|
|
|
DB_CONNECTION: "pg"
|
|
|
|
DB_PORT: "5432"
|
|
|
|
DB_SSL: false
|
|
|
|
DB_USER: "{{ .Values.cnpg.main.user }}"
|
|
|
|
DB_DATABASE: "{{ .Values.cnpg.main.database }}"
|
|
|
|
# User Defined
|
|
|
|
APP_URL: "http://localhost:3333"
|
|
|
|
IS_CREATION_ENABLED: true
|
|
|
|
IS_DASHBOARD_ENABLED: true
|
|
|
|
IS_REGISTRATION_ENABLED: true
|
|
|
|
CONNECT_WITH_FRANZ: true
|
|
|
|
# MAIL_CONNECTION: "smtp"
|
|
|
|
# SMTP_HOST: "localhost"
|
|
|
|
# SMTP_PORT: 587
|
|
|
|
# MAIL_SSL: true
|
|
|
|
# MAIL_USERNAME: "username@example.com"
|
|
|
|
# MAIL_PASSWORD: "password"
|
|
|
|
# MAIL_SENDER: "noreply@example.com"
|
|
|
|
# SPARKPOST_API_KEY: ""
|
|
|
|
# MAILGUN_DOMAIN: ""
|
|
|
|
# MAILGUN_API_REGION: ""
|
|
|
|
# MAILGUN_API_KEY: ""
|
|
|
|
DB_HOST:
|
|
|
|
secretKeyRef:
|
|
|
|
name: cnpg-main-urls
|
|
|
|
key: host
|
|
|
|
DB_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: cnpg-main-user
|
|
|
|
key: password
|
|
|
|
|
2022-04-01 03:18:18 -04:00
|
|
|
persistence:
|
|
|
|
data:
|
|
|
|
enabled: true
|
2023-04-11 06:07:17 -04:00
|
|
|
mountPath: /app/data
|
|
|
|
targetSelector:
|
|
|
|
main:
|
|
|
|
main: {}
|
|
|
|
1-create-key-file: {}
|
2022-04-01 03:18:18 -04:00
|
|
|
recipes:
|
|
|
|
enabled: true
|
2023-04-11 06:07:17 -04:00
|
|
|
mountPath: /app/recipes
|
2022-04-01 03:18:18 -04:00
|
|
|
|
2023-04-11 06:07:17 -04:00
|
|
|
cnpg:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
user: ferdi-server
|
|
|
|
database: ferdi-server
|
2022-08-08 17:25:02 -04:00
|
|
|
|
|
|
|
portal:
|
2023-04-11 06:07:17 -04:00
|
|
|
open:
|
|
|
|
enabled: true
|