wraft-helm/templates/deployment-db.yaml

28 lines
720 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-db
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}-db
template:
metadata:
labels:
app: {{ .Release.Name }}-db
spec:
containers:
- name: db
image: {{ .Values.db.image }}
ports:
- containerPort: {{ .Values.db.service.port | int }}
env:
- name: POSTGRES_USER
value: {{ .Values.db.env.POSTGRES_USER | quote }}
- name: POSTGRES_PASSWORD
value: {{ .Values.db.env.POSTGRES_PASSWORD | quote }}
- name: POSTGRES_DB
value: {{ .Values.db.env.POSTGRES_DB | quote }}