Change tandoor to helm chart

main
trivernis 1 year ago
parent 72ca426a6d
commit 49a098a176
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: DFFFCC2C7A02DB45

@ -5,11 +5,7 @@ metadata:
name: tandoor name: tandoor
resources: resources:
- app/namespace.yaml - app/namespace.yaml
- app/service-account.yaml
- app/recipes-sealedsecret.yaml - app/recipes-sealedsecret.yaml
- app/config.yaml
- app/pvc.yaml
- app/postgres.yaml - app/postgres.yaml
- app/deploy.yaml - app/release.yaml
- app/service.yaml
- app/route.yaml - app/route.yaml

@ -1,30 +0,0 @@
kind: ConfigMap
apiVersion: v1
metadata:
labels:
app: recipes
name: recipes-nginx-config
namespace: tandoor
data:
nginx-config: |-
events {
worker_connections 1024;
}
http {
include mime.types;
server {
listen 80;
server_name _;
client_max_body_size 16M;
# serve static files
location /static/ {
alias /static/;
}
# serve media files
location /media/ {
alias /media/;
}
}
}

@ -1,28 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: recipes-media
namespace: tandoor
labels:
app: recipes
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn-hdd-crypto-global
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: recipes-static
namespace: tandoor
labels:
app: recipes
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

@ -6,9 +6,9 @@ metadata:
namespace: tandoor namespace: tandoor
spec: spec:
encryptedData: encryptedData:
postgresql-password: AgBcusmDi53vbvZL/v6yTwABvww94o+keuVCKMj6sy6muRzLpLvOu+On3vbNl49hoCXALqsMLQ3NGZ78UpuTWbfUU49nJYrmPyGdBMUW+Nwz1jqkIX/jloUcB/Ltac0YtWu57BOTbhwlGUGSS7LwF8/A2UK3wlQVF/QvUBXU6JRWvWEbzJoQFZQ1xumQR8G1WEqYgMyd99BgJiJYeqoXDFPiYPd+2cUND8B47OgNgXY1MpLo48osbtbdV+lBcCchflX+foGwTHrK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4lNZGE3Zyb3gQfDvfp6JeIkv6vXYylaAdBCnq3eY/JjQosspGRrJ5lTzmoL6Ts3POkZm2w0CNueAwZjQ0sDju9hFEp98MKoB8BCg5trG+1+hu+j5djse6d15+zAQ3aTuSlrS9scV33tiBrnIbVJHB7mbfia48elJ5rvp4g== values: AgCe+fO+G3V47BTvZnGQA5dik0XZJggG0rpy4pnMv2/+7a8MqmCLPQuPunus0MUqikoT5JZqJi2lxsuAFt4Qv8fnjNIbc1tQhzZYVIYgAQOY+0N+6k3D3Ma5LkIcMJgN9ufHPwPun/8DcbbemXuqgqdAqsbVMS2cDIXp5EVs0NJ3XEffN9gqVg4iWu/vztl707sGp3DklPApAevgggKllqk31ntFhRRMBkQu0//F/Ee2+H3qCnNYJ/VWCsbTVw2kRtnESu6cDKWoDb5YsG3Gv853OvcdvSk54K0sq9FkmwLdEGTTcrVJD8oJ2VhjoAJAAcIAbS0543JBwTXzlT+wjto821jJrDAz9ZqJ1s+tofiK8Kjwbfn9z9zi7kR3zXcSPQSkuD2jk5Q1555DjaeD/W4uSF5vKCs7wW+KU1Tp7lyLWASBibXGu2WkMbqBE/7krtYypFGoNLFBaKOF6Qz0/exbw0oEZJ104ANHArcBdC8nVZZ3rFUkcreMdu7a9RzY17LB9cvN5GjcSNAszWc8veDBl/6YNtS3hJjwsjSKTUDFbC5yUeyGT3cmWJ5a1jGuusfLQz1d8rGaOTnfDk6j+vD3qI/sa9dXah7efMaryAw0fcIPGSZryj1rBzq2o61YB0MRCiksFN4DgXM8d9BZRq5Awe/+776O6CZsf0eu5TKyEUvpmDXxYW73LwuHBzLObDaMEB+cY0++DbYyw9hzjSozZQKxsQRMzxKtP8UFMyRE2o2bpRHDcv0TqQ==
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null

@ -0,0 +1,39 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: tandoor
namespace: tandoor
spec:
releaseName: tandoor
chart:
spec:
chart: tandoor
sourceRef:
kind: HelmRepository
name: gabe565
namespace: repos
interval: 60m
install:
remediation:
retries: 3
values:
postgresql:
enabled: false
persistence:
media:
enabled: true
storageClass: longhorn-hdd-crypto-global
size: 2Gi
env:
TIMEZONE: Europe/Berlin
ALLOWED_HOSTS: '*'
CSRF_TRUSTED_ORIGINS: https://recipes.trivernis.dev
DB_ENGINE: django.db.backends.postgresql_psycopg2
POSTGRES_HOST: recipes-db
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_DB: postgres
valuesFrom:
- kind: Secret
name: recipes-secret
valuesKey: values

@ -1,5 +0,0 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: recipes
namespace: tandoor

@ -1,22 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: recipes-service
namespace: tandoor
labels:
app: recipes
tier: frontend
spec:
selector:
app: recipes
tier: frontend
environment: production
ports:
- port: 80
targetPort: http
name: http
protocol: TCP
- port: 8080
targetPort: gunicorn
name: gunicorn
protocol: TCP
Loading…
Cancel
Save