2021-10-19 12:20:06 +00:00
|
|
|
image:
|
2021-12-03 12:02:44 +00:00
|
|
|
repository: tccr.io/truecharts/recipes
|
2022-08-09 10:14:27 +00:00
|
|
|
tag: 1.3.3@sha256:4a2a85292c5431e99a4ae428f423ac8c6f65f5e421e75605457f081519304c8f
|
2021-10-19 12:20:06 +00:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
|
|
|
nginxImage:
|
2021-12-03 12:10:34 +00:00
|
|
|
repository: tccr.io/truecharts/nginx
|
2022-09-15 15:42:23 +00:00
|
|
|
tag: v1.23.1@sha256:751dcda748469474cf4f0c8f404671d6d0e6b39f26d92196aa9312d9633b5f7b
|
2021-10-19 12:20:06 +00:00
|
|
|
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
runAsNonRoot: false
|
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
|
2022-06-07 17:41:19 +00:00
|
|
|
configmap:
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
nginx-config: |-
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name _;
|
|
|
|
client_max_body_size 16M;
|
|
|
|
# serve media files
|
|
|
|
location /media/ {
|
|
|
|
alias /media/;
|
|
|
|
}
|
|
|
|
# serve static files
|
|
|
|
location /static/ {
|
|
|
|
alias /static/;
|
|
|
|
}
|
|
|
|
# pass requests for dynamic content to gunicorn
|
|
|
|
location / {
|
2022-08-18 19:49:19 +00:00
|
|
|
proxy_set_header Host $http_host;
|
2022-06-07 17:41:19 +00:00
|
|
|
proxy_pass http://localhost:8080;
|
2022-08-18 19:49:19 +00:00
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2022-06-07 17:41:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-19 12:20:06 +00:00
|
|
|
env:
|
|
|
|
DEBUG: 0
|
|
|
|
ALLOWED_HOSTS: "*"
|
2022-08-27 16:49:53 +00:00
|
|
|
CSRF_TRUSTED_ORIGINS: ""
|
2021-10-19 12:20:06 +00:00
|
|
|
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"
|
|
|
|
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:
|
2022-07-22 18:23:01 +00:00
|
|
|
- name: recipes-config
|
|
|
|
mountPath: "/etc/nginx/nginx.conf"
|
|
|
|
subPath: nginx-config
|
|
|
|
readOnly: true
|
|
|
|
- name: media
|
|
|
|
mountPath: "/media"
|
|
|
|
- name: static
|
|
|
|
mountPath: "/static"
|
2021-10-19 12:20:06 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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"
|
2022-06-07 17:41:19 +00:00
|
|
|
recipes-config:
|
|
|
|
enabled: "true"
|
|
|
|
mountPath: "/etc/nginx/nginx.conf"
|
|
|
|
subPath: "nginx.conf"
|
|
|
|
type: "custom"
|
|
|
|
volumeSpec:
|
|
|
|
configMap:
|
|
|
|
name: '{{ printf "%v-config" (include "tc.common.names.fullname" .) }}'
|
2021-10-19 12:20:06 +00:00
|
|
|
|
|
|
|
postgresql:
|
|
|
|
enabled: true
|
|
|
|
existingSecret: "dbcreds"
|
|
|
|
postgresqlUsername: recipes
|
|
|
|
postgresqlDatabase: recipes
|
2022-08-08 21:25:02 +00:00
|
|
|
|
|
|
|
portal:
|
|
|
|
enabled: true
|