Created configuration to deploy Odoo app
This commit is contained in:
44
postgres-deploy.yaml
Normal file
44
postgres-deploy.yaml
Normal 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
|
||||
Reference in New Issue
Block a user