odoo17 helm chart
This commit is contained in:
commit
1724a99840
9 changed files with 296 additions and 0 deletions
48
prod/templates/db-deployment.yaml
Normal file
48
prod/templates/db-deployment.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue