Updated docker image name; Created ConfigMap and Secret

This commit is contained in:
Marcin-Ramotowski
2025-10-04 16:05:32 +02:00
parent cf241d7771
commit b4e4471cbf
4 changed files with 34 additions and 7 deletions

View File

@@ -15,16 +15,22 @@ spec:
spec:
containers:
- name: postgres
image: docker.io/bitnami/postgresql:15
image: bitnamilegacy/postgresql:15
ports:
- containerPort: 5432
env:
- name: POSTGRESQL_DATABASE
value: k8smaestro
- name: POSTGRESQL_PASSWORD
value: k8smaestro
- name: POSTGRESQL_USERNAME
value: odoo
valueFrom:
secretKeyRef:
name: odoo-secret
key: DB_PASSWORD
- name: POSTGRES_USERNAME
valueFrom:
configMapKeyRef:
name: odoo-configmap
key: DB_USER
volumeMounts:
- name: postgres-storage
mountPath: /bitnami/postgresql