Restructure yaml, add CI/CD pipelines

This commit is contained in:
red 2025-04-08 12:17:27 -04:00
parent fc1bf0bb9a
commit fd7d99d29a
31 changed files with 771 additions and 543 deletions

View file

@ -0,0 +1,55 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres
namespace: darkdork-dev
spec:
replicas: 1
selector:
matchLabels:
app: postgres
template:
metadata:
labels:
app: postgres
spec:
imagePullSecrets:
- name: registry-credentials
containers:
- name: postgres
image: postgres:17-alpine
imagePullPolicy: Always
volumeMounts:
- name: postgres-data-volume
mountPath: /var/lib/postgresql/data
- name: postgres-init-volume
mountPath: /docker-entrypoint-initdb.d
- name: postgres-config-volume
mountPath: /etc/postgresql/postgresql.conf
subPath: postgresql.conf
ports:
- containerPort: 5432
env:
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres
key: postgres-password
- name: DB_PASS
valueFrom:
secretKeyRef:
name: postgres
key: postgres-password
volumes:
- name: postgres-data-volume
persistentVolumeClaim:
claimName: postgres-pvc
- name: postgres-init-volume
configMap:
name: postgres-init
defaultMode: 0755
- name: postgres-config-volume
configMap:
name: postgres-config
---