mirror of
https://github.com/auricom/home-cluster.git
synced 2025-10-02 00:34:25 +02:00
94 lines
2.4 KiB
YAML
94 lines
2.4 KiB
YAML
---
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: recipes
|
|
namespace: data
|
|
spec:
|
|
interval: 5m
|
|
chart:
|
|
spec:
|
|
# renovate: registryUrl=https://k8s-at-home.com/charts/
|
|
chart: recipes
|
|
version: 4.4.0
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: k8s-at-home-charts
|
|
namespace: flux-system
|
|
interval: 5m
|
|
values:
|
|
controllerType: deployment
|
|
strategy:
|
|
type: Recreate
|
|
image:
|
|
repository: vabene1111/recipes
|
|
tag: 0.15.2
|
|
pullPolicy: IfNotPresent
|
|
env:
|
|
SECRET_KEY: ${SECRET_RECIPES_SECRET_KEY}
|
|
DEBUG: "0"
|
|
ALLOWED_HOSTS: "*"
|
|
DB_ENGINE: django.db.backends.postgresql
|
|
POSTGRES_HOST: postgresql-kube.data.svc.cluster.local.
|
|
POSTGRES_PORT: 5432
|
|
POSTGRES_DB: recipes
|
|
POSTGRES_USER: recipes
|
|
POSTGRES_PASSWORD: ${SECRET_RECIPES_DB_PASSWORD}
|
|
GUNICORN_MEDIA: "0"
|
|
TIMEZONE: Europe/Paris
|
|
FRACTION_PREF_DEFAULT: "0"
|
|
COMMENT_PREF_DEFAULT: "1"
|
|
SHOPPING_MIN_AUTOSYNC_INTERVAL: "5"
|
|
service:
|
|
port:
|
|
port: 80
|
|
annotations:
|
|
prometheus.io/probe: "true"
|
|
prometheus.io/protocol: http
|
|
ingress:
|
|
enabled: true
|
|
annotations:
|
|
kubernetes.io/ingress.class: "nginx"
|
|
nginx.ingress.kubernetes.io/client-body-buffer-size: "10m"
|
|
hosts:
|
|
- host: recipes.${SECRET_CLUSTER_DOMAIN}
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
tls:
|
|
- hosts:
|
|
- "recipes.${SECRET_CLUSTER_DOMAIN}"
|
|
|
|
additionalVolumes:
|
|
- name: files
|
|
persistentVolumeClaim:
|
|
claimName: recipes-files
|
|
- name: recipes-config
|
|
configMap:
|
|
name: recipes-config
|
|
additionalVolumeMounts:
|
|
- name: files
|
|
mountPath: /opt/recipes/mediafiles
|
|
subPath: media
|
|
- name: files
|
|
mountPath: /opt/recipes/staticfiles
|
|
subPath: static
|
|
|
|
additionalContainers:
|
|
- name: nginx
|
|
image: nginx:1.20.0
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
volumeMounts:
|
|
- name: files
|
|
mountPath: "/media"
|
|
subPath: media
|
|
- name: files
|
|
mountPath: "/static"
|
|
subPath: static
|
|
- name: recipes-config
|
|
mountPath: /etc/nginx/nginx.conf
|
|
subPath: nginx-config
|
|
readOnly: true
|