You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.9 KiB
84 lines
2.9 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "jitsi-meet.web.fullname" . }}
|
|
labels:
|
|
{{- include "jitsi-meet.web.labels" . | nindent 4 }}
|
|
{{- with .Values.web.annotations }}
|
|
annotations:
|
|
{{ toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
replicas: {{ .Values.web.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "jitsi-meet.web.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{- include "jitsi-meet.web.selectorLabels" . | nindent 8 }}
|
|
{{- range $label, $value := mergeOverwrite .Values.global.podLabels .Values.web.podLabels }}
|
|
{{ $label }}: {{ $value }}
|
|
{{- end }}
|
|
annotations:
|
|
checksum/config: {{ include (print $.Template.BasePath "/web/configmap.yaml") . | sha256sum }}
|
|
{{- range $annotation, $value := mergeOverwrite .Values.global.podAnnotations .Values.web.podAnnotations }}
|
|
{{ $annotation }}: {{ $value|quote }}
|
|
{{- end }}
|
|
spec:
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: {{ include "jitsi-meet.serviceAccountName" . }}
|
|
securityContext:
|
|
{{- toYaml .Values.web.podSecurityContext | nindent 8 }}
|
|
containers:
|
|
- name: {{ .Chart.Name }}
|
|
securityContext:
|
|
{{- toYaml .Values.web.securityContext | nindent 12 }}
|
|
image: "{{ .Values.web.image.repository }}:{{ default .Chart.AppVersion .Values.web.image.tag }}"
|
|
imagePullPolicy: {{ pluck "pullPolicy" .Values.web.image .Values.image | first }}
|
|
envFrom:
|
|
- configMapRef:
|
|
name: {{ include "jitsi-meet.web.fullname" . }}
|
|
- configMapRef:
|
|
name: {{ include "call-nested" (list . "prosody" "prosody.fullname") }}-common
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
protocol: TCP
|
|
- name: https
|
|
containerPort: 443
|
|
protocol: TCP
|
|
{{- with .Values.web.livenessProbe }}
|
|
livenessProbe:
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
{{- with .Values.web.readinessProbe }}
|
|
readinessProbe:
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|
|
resources:
|
|
{{- toYaml .Values.web.resources | nindent 12 }}
|
|
{{- with .Values.web.extraVolumeMounts }}
|
|
volumeMounts:
|
|
{{- toYaml . | nindent 10 }}
|
|
{{- end }}
|
|
|
|
{{- with .Values.web.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.web.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.web.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.web.extraVolumes }}
|
|
volumes:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
|