odoo17 helm chart

This commit is contained in:
snt 2024-10-10 01:21:12 +02:00
commit 1724a99840
9 changed files with 296 additions and 0 deletions

View file

@ -0,0 +1,48 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose -f prod.yaml convert -c
kompose.version: 1.34.0 (cbf2835db)
labels:
io.kompose.service: db
name: db
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: db
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose -f prod.yaml convert -c
kompose.version: 1.34.0 (cbf2835db)
labels:
io.kompose.service: db
spec:
containers:
- env:
- name: CONF_EXTRA
value: |
work_mem = 512MB
- name: POSTGRES_DB
value: prod
- name: POSTGRES_PASSWORD
valueFrom:
configMapKeyRef:
key: POSTGRES_PASSWORD
name: db-creation-env
- name: POSTGRES_USER
value: odoo
image: ghcr.io/tecnativa/postgres-autoconf:15-alpine
name: db
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: db
restartPolicy: Always
volumes:
- name: db
persistentVolumeClaim:
claimName: db