Add jobserver option, bump server version.
This commit is contained in:
58
loop-enterprise-edition/templates/deployment-jobserver.yaml
Normal file
58
loop-enterprise-edition/templates/deployment-jobserver.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
{{- if .Values.jobserver.enabled -}}
|
||||
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "common.names.fullname" . }}-jobserver
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "common.names.fullname" . }}-jobserver
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy: {}
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: {{ include "common.names.fullname" . }}-jobserver
|
||||
template:
|
||||
metadata:
|
||||
{{- if or .Values.checksums}}
|
||||
annotations:
|
||||
{{- range .Values.checksums }}
|
||||
checksum/{{ . | trimPrefix "/" }}: {{ include (print $.Template.BasePath "/" (. | trimPrefix "/")) $ | sha256sum }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "common.names.fullname" . }}-jobserver
|
||||
spec:
|
||||
affinity: {}
|
||||
nodeSelector: {}
|
||||
tolerations: {}
|
||||
schedulerName: {}
|
||||
securityContext: {}
|
||||
containers:
|
||||
- name: app-jobserver
|
||||
image: {{ include "app.image" . }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
{{- if .Values.containerSecurityContext.enabled }}
|
||||
securityContext: {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
||||
{{- end }}
|
||||
command: ["mattermost", "jobserver"]
|
||||
{{- if .Values.args }}
|
||||
args: {{- include "common.tplvalues.render" (dict "value" .Values.args "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if .Values.env }}
|
||||
env:
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.env "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if .Values.envFrom }}
|
||||
envFrom: {{- include "common.tplvalues.render" (dict "value" .Values.envFrom "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
resources: {{- include "common.tplvalues.render" (dict "value" .Values.resources "context" $) | nindent 12 }}
|
||||
volumeMounts:
|
||||
{{- if .Values.volumeMounts }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.volumeMounts "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
|
||||
volumes:
|
||||
{{- if .Values.volumes }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.volumes "context" $) | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -92,6 +92,13 @@ spec:
|
||||
{{- if .Values.envFrom }}
|
||||
envFrom: {{- include "common.tplvalues.render" (dict "value" .Values.envFrom "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if .Values.jobserver.enabled }}
|
||||
env:
|
||||
- name: MM_JOBSETTINGS_RUNJOBS
|
||||
value: "false"
|
||||
- name: MM_JOBSETTINGS_RUNSCHEDULER
|
||||
value: "false"
|
||||
{{- end }}
|
||||
{{- if .Values.containerPorts }}
|
||||
ports: {{ .Values.containerPorts | toYaml | nindent 12 }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user