Files
kubernetes-config/ptp-chat/ptp-chat-db.yaml
jona.klaess a214116cd3
All checks were successful
Mirror to GitHub / mirror (push) Successful in 7s
fix vars for db
2026-06-07 13:31:46 +02:00

66 lines
1.4 KiB
YAML

---
# Source: portainer/templates/pvc.yaml
kind: "PersistentVolumeClaim"
apiVersion: "v1"
metadata:
name: ptp-chat-pvc
namespace: ptp-chat
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ptp-chat-db
namespace: ptp-chat
labels:
app: ptp-chat-db
spec:
replicas: 1
selector:
matchLabels:
app: ptp-chat-db
template:
metadata:
labels:
app: ptp-chat-db
spec:
containers:
- name: ptp-chat-db
image: postgres:latest
env:
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: ptp-chat-secret
key: SPRING_DATASOURCE_USERNAME
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: ptp-chat-secret
key: SPRING_DATASOURCE_PASSWORD
- name: POSTGRES_DB
value: praxistransfer
ports:
- name: http
containerPort: 5432
resources:
requests:
memory: 0.5Gi
cpu: 1
limits:
memory: 1Gi
cpu: 2
volumeMounts:
- name: ptp-chat-pvc
mountPath: /var/lib/postgresql
readOnly: false
volumes:
- name: ptp-chat-pvc
persistentVolumeClaim:
claimName: ptp-chat-pvc