Refactor
This commit is contained in:
parent
0079a1dcb9
commit
fd14c6d228
19 changed files with 158 additions and 128 deletions
|
@ -1,3 +1,4 @@
|
|||
{{- if .Values.worker.enabled -}}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
|
@ -43,23 +44,9 @@ spec:
|
|||
env:
|
||||
- name: SERVER_ROLE
|
||||
value: "beat"
|
||||
{{- if .Values.redisURL }}
|
||||
- name: REDIS_URL
|
||||
value: {{ .Values.redisURL }}
|
||||
{{- end }}
|
||||
{{- if .Values.redis.enabled }}
|
||||
- name: REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
key: redis-password
|
||||
name: {{ include "django.fullname" . }}-redis
|
||||
- name: REDIS_HOST
|
||||
value: {{ template "django.redis.host" . }}
|
||||
- name: REDIS_PORT
|
||||
value: {{ template "django.redis.port" . }}
|
||||
{{- end }}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ include "django.fullname" . }}
|
||||
- configMapRef:
|
||||
name: {{ include "django.fullname" . }}
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue