change some

This commit is contained in:
2026-08-10 17:32:58 +05:00
parent 18012fcec0
commit 51283ffa14
14 changed files with 753 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: main-db
namespace: online-back
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: main-db
template:
metadata:
labels:
app: main-db
spec:
containers:
- name: main-db
image: postgres:14.1-alpine
ports:
- containerPort: 5432
envFrom:
- secretRef:
name: main-db-secret
volumeMounts:
- name: db-storage
mountPath: /var/lib/postgresql/data
volumes:
- name: db-storage
persistentVolumeClaim:
claimName: main-db-pvc