2021-10-19 12:20:06 +00:00
|
|
|
image:
|
|
|
|
# -- image repository
|
2021-12-03 12:02:44 +00:00
|
|
|
repository: tccr.io/truecharts/recipes
|
2021-10-19 12:20:06 +00:00
|
|
|
# -- image tag
|
2022-03-17 08:15:06 +00:00
|
|
|
tag: v1.1.3@sha256:c3647df7ce82ed48e3b0cff7da5ab02612c894ddffe40dc72bcf66bd67bc3d2b
|
2021-10-19 12:20:06 +00:00
|
|
|
# -- image pull policy
|
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
|
|
|
nginxImage:
|
|
|
|
# -- nginx sidecar image repository
|
2021-12-03 12:10:34 +00:00
|
|
|
repository: tccr.io/truecharts/nginx
|
2021-10-19 12:20:06 +00:00
|
|
|
# -- nginx sidecar image tag
|
2022-04-26 09:56:48 +00:00
|
|
|
tag: v1.21.6@sha256:79875e354f6669f0fe8a31026a092734fd914ab041de0f3d8462e0117be37fd3
|
2021-10-19 12:20:06 +00:00
|
|
|
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsNonRoot: false
|
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
|
|
|
|
# -- environment variables. See [project docs](https://raw.githubusercontent.com/vabene1111/recipes/master/.env.template) for more details.
|
|
|
|
# @default -- See below
|
|
|
|
env:
|
|
|
|
DEBUG: 0
|
|
|
|
ALLOWED_HOSTS: "*"
|
|
|
|
GUNICORN_MEDIA: 0
|
|
|
|
FRACTION_PREF_DEFAULT: 0
|
|
|
|
COMMENT_PREF_DEFAULT: 1
|
|
|
|
SHOPPING_MIN_AUTOSYNC_INTERVAL: 5
|
2022-03-06 19:08:58 +00:00
|
|
|
TIMEZONE: "{{ .Values.TZ }}"
|
2021-10-19 12:20:06 +00:00
|
|
|
DB_ENGINE: "django.db.backends.postgresql"
|
|
|
|
POSTGRES_DB: "{{ .Values.postgresql.postgresqlDatabase }}"
|
|
|
|
POSTGRES_USER: "{{ .Values.postgresql.postgresqlUsername }}"
|
|
|
|
POSTGRES_PORT: "5432"
|
|
|
|
|
|
|
|
envValueFrom:
|
|
|
|
POSTGRES_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: dbcreds
|
|
|
|
key: postgresql-password
|
|
|
|
POSTGRES_HOST:
|
|
|
|
secretKeyRef:
|
|
|
|
name: dbcreds
|
|
|
|
key: plainhost
|
2021-12-18 22:45:49 +00:00
|
|
|
SECRET_KEY:
|
|
|
|
secretKeyRef:
|
|
|
|
name: recipes-secrets
|
|
|
|
key: SECRET_KEY
|
2021-10-19 12:20:06 +00:00
|
|
|
|
|
|
|
additionalContainers:
|
|
|
|
nginx:
|
|
|
|
name: nginx
|
|
|
|
image: "{{ .Values.nginxImage.repository }}:{{ .Values.nginxImage.tag }}"
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
name: main
|
|
|
|
volumeMounts:
|
|
|
|
- name: recipes-config
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/etc/nginx/nginx.conf"
|
2021-10-19 12:20:06 +00:00
|
|
|
subPath: nginx-config
|
|
|
|
readOnly: true
|
|
|
|
- name: media
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/media"
|
2021-10-19 12:20:06 +00:00
|
|
|
- name: static
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/static"
|
2021-10-19 12:20:06 +00:00
|
|
|
|
|
|
|
# -- Configures service settings for the chart.
|
|
|
|
# @default -- See values.yaml
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
2021-11-28 09:26:31 +00:00
|
|
|
port: 10029
|
2021-11-06 21:55:18 +00:00
|
|
|
targetPort: 80
|
2021-10-19 12:20:06 +00:00
|
|
|
|
|
|
|
# -- Configure persistence settings for the chart under this key.
|
|
|
|
# @default -- See values.yaml
|
|
|
|
persistence:
|
|
|
|
media:
|
|
|
|
enabled: true
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/opt/recipes/mediafiles"
|
2021-10-19 12:20:06 +00:00
|
|
|
static:
|
|
|
|
enabled: true
|
|
|
|
type: emptyDir
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/opt/recipes/staticfiles"
|
2021-10-19 12:20:06 +00:00
|
|
|
|
|
|
|
# Enabled postgres
|
|
|
|
postgresql:
|
|
|
|
enabled: true
|
|
|
|
existingSecret: "dbcreds"
|
|
|
|
postgresqlUsername: recipes
|
|
|
|
postgresqlDatabase: recipes
|