generated from Templates/docker_project
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: postgres-prod
|
|
name: postgres-prod
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: postgres-prod
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: postgres-prod
|
|
spec:
|
|
containers:
|
|
- name: db
|
|
imagePullPolicy: IfNotPresent
|
|
image: 'postgres:14.2-alpine'
|
|
ports:
|
|
- name: tcp-5432
|
|
protocol: TCP
|
|
containerPort: 5432
|
|
envFrom:
|
|
- secretRef:
|
|
name: postgres-prod
|
|
volumeMounts:
|
|
- name: postgres-prod-data
|
|
readOnly: false
|
|
mountPath: /var/lib/postgresql/data
|
|
- name: wikijs-postgres-init
|
|
readOnly: true
|
|
mountPath: /docker-entrypoint-initdb.d
|
|
volumes:
|
|
- name: postgres-prod-data
|
|
persistentVolumeClaim:
|
|
claimName: postgres-prod-data
|
|
- name: wikijs-postgres-init
|
|
configMap:
|
|
name: wikijs-postgres-init
|