add pg
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simple_Not 2023-12-14 19:42:44 +10:00
parent e303a7403e
commit f1f3a99560

View File

@ -14,32 +14,32 @@ spec:
app: postgres app: postgres
spec: spec:
containers: containers:
- name: postgres - name: postgres
image: postgres:latest image: postgres:latest
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
env: env:
- name: POSTGRES_USER - name: POSTGRES_USER
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: postgres-secret name: postgres-secret
key: postgres-root-username key: postgres-root-username
- name: POSTGRES_PASSWORD - name: POSTGRES_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: postgres-secret name: postgres-secret
key: postgres-root-password key: postgres-root-password
- name: POSTGRES_DB - name: POSTGRES_DB
valueFrom: valueFrom:
configMapKeyRef: configMapKeyRef:
name: postgres-configmap name: postgres-configmap
key: postgres-dbname key: postgres-dbname
volumeMounts: volumeMounts:
- mountPath: /var/lib/postgresql/data - mountPath: /var/lib/postgresql/data
name: postgredb name: postgredb
volumes: volumes:
- name: postgredb - name: postgredb
persistentVolumeClaim: persistentVolumeClaim:
claimName: postgres-pv-claim claimName: postgres-pv-claim
--- ---
kind: PersistentVolume kind: PersistentVolume
apiVersion: v1 apiVersion: v1