mirror of
https://github.com/TeamPiped/Piped-Kubernetes.git
synced 2026-06-23 05:25:55 +00:00
* 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
36 lines
657 B
YAML
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
|