Files
kubernetes-config/ptp-chat/ptp-chat-db.yaml
jona.klaess 77ab15718b
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s
reduce resources
2026-06-10 11:20:16 +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.1Gi
cpu: 0.01
limits:
memory: 0.4Gi
cpu: 0.05
volumeMounts:
- name: ptp-chat-pvc
mountPath: /var/lib/postgresql
readOnly: false
volumes:
- name: ptp-chat-pvc
persistentVolumeClaim:
claimName: ptp-chat-pvc