refactor: Update API deployment and service names to match component name change

This commit is contained in:
2024-08-13 21:20:11 +08:00
parent 1f0b71fab1
commit d9498c66c7
4 changed files with 81 additions and 25 deletions
+30
View File
@@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres-deployment
spec:
replicas: 1
selector:
matchLabels:
component: postgres
template:
metadata:
labels:
component: postgres
spec:
volumes:
- name: postgres-storage
persistentVolumeClaim:
claimName: database-persistent-volume-claim
containers:
- name: postgres
image: postgres
env:
- name: POSTGRES_PASSWORD
value: whatever
ports:
- containerPort: 5432
volumeMounts:
- name: postgres-storage
mountPath: /var/lib/postgresql/data
subPath: postgres