Updated docker image name; Created ConfigMap and Secret
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user