32 lines
927 B
YAML
32 lines
927 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "warframe-db-simple.fullname" . }}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: {{ include "warframe-db-simple.name" . }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ include "warframe-db-simple.name" . }}
|
|
spec:
|
|
containers:
|
|
- name: postgres
|
|
image: {{ .Values.image }}
|
|
ports:
|
|
- containerPort: 5432
|
|
env:
|
|
- name: POSTGRES_USER
|
|
value: {{ .Values.postgres.user | quote }}
|
|
- name: POSTGRES_PASSWORD
|
|
value: {{ .Values.postgres.password | quote }}
|
|
- name: POSTGRES_DB
|
|
value: {{ .Values.postgres.database | quote }}
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /var/lib/postgresql/data
|
|
volumes:
|
|
- name: data
|
|
emptyDir: {} # no persistence, super simple |