Created configuration to deploy Odoo app

This commit is contained in:
Marcin-Ramotowski
2025-05-18 19:55:38 +00:00
commit cf241d7771
4 changed files with 114 additions and 0 deletions

44
postgres-deploy.yaml Normal file
View File

@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: postgresql
namespace: odoo
spec:
replicas: 1
selector:
matchLabels:
app: postgresql
template:
metadata:
labels:
app: postgresql
spec:
containers:
- name: postgres
image: docker.io/bitnami/postgresql:15
ports:
- containerPort: 5432
env:
- name: POSTGRESQL_DATABASE
value: k8smaestro
- name: POSTGRESQL_PASSWORD
value: k8smaestro
- name: POSTGRESQL_USERNAME
value: odoo
volumeMounts:
- name: postgres-storage
mountPath: /bitnami/postgresql
volumes:
- name: postgres-storage
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: postgresql
namespace: odoo
spec:
ports:
- port: 5432
selector:
app: postgresql