64 lines
2.2 KiB
YAML
64 lines
2.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}-backend
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Release.Name }}-backend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Release.Name }}-backend
|
|
spec:
|
|
containers:
|
|
- name: backend
|
|
image: {{ .Values.backend.image }}
|
|
ports:
|
|
- containerPort: {{ .Values.backend.service.targetPort | int }}
|
|
env:
|
|
- name: MIX_ENV
|
|
value: {{ .Values.backend.env.MIX_ENV | quote }}
|
|
- name: SECRET_KEY_BASE
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: backend-secret
|
|
key: SECRET_KEY_BASE
|
|
- name: GUARDIAN_KEY
|
|
value: {{ .Values.backend.env.GUARDIAN_KEY | quote }}
|
|
- name: DEV_DB_USERNAME
|
|
value: {{ .Values.backend.env.DEV_DB_USERNAME | quote }}
|
|
- name: DEV_DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: backend-secret
|
|
key: DEV_DB_PASSWORD
|
|
- name: DEV_DB_NAME
|
|
value: {{ .Values.backend.env.DEV_DB_NAME | quote }}
|
|
- name: DEV_DB_HOST
|
|
value: {{ .Values.backend.env.DEV_DB_HOST | quote }}
|
|
- name: DEV_DB_PORT
|
|
value: {{ .Values.backend.env.DEV_DB_PORT | quote }}
|
|
- name: MINIO_URL
|
|
value: {{ .Values.backend.env.MINIO_URL | quote }}
|
|
- name: MINIO_HOST
|
|
value: {{ .Values.backend.env.MINIO_HOST | quote }}
|
|
- name: MINIO_PORT
|
|
value: {{ .Values.backend.env.MINIO_PORT | quote }}
|
|
- name: MINIO_BUCKET
|
|
value: {{ .Values.backend.env.MINIO_BUCKET | quote }}
|
|
- name: MINIO_ROOT_USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: backend-secret
|
|
key: MINIO_ROOT_USER
|
|
- name: MINIO_ROOT_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: backend-secret
|
|
key: MINIO_ROOT_PASSWORD
|
|
- name: SENTRY_DSN
|
|
value: {{ .Values.backend.env.SENTRY_DSN | quote }}
|
|
|