Piped-Kubernetes/.ci/postgres.yaml
Skyler Mäntysaari e567d03b10
feat: update image pull policy configuration for backend, frontend, and ytproxy containers (#238)
* feat: update image pull policy configuration for backend, frontend, and ytproxy containers
* fix typo
* feat: add PostgreSQL deployment and service configuration
* Move postgres deploy to .ci
* Hmm
* fix: update PostgreSQL connection URL to use the default service
* chart testing with debug
* add PostgreSQL driver class to external values configuration
* Remove debug from testing and fix lint
2026-01-12 15:02:36 +02:00

36 lines
657 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres
spec:
replicas: 1
selector:
matchLabels:
app: postgres
template:
metadata:
labels:
app: postgres
spec:
containers:
- name: postgres
image: postgres:15
env:
- name: POSTGRES_USER
value: testuser
- name: POSTGRES_PASSWORD
value: testpass
- name: POSTGRES_DB
value: testdb
ports:
- containerPort: 5432
---
apiVersion: v1
kind: Service
metadata:
name: postgres
spec:
selector:
app: postgres
ports:
- port: 5432