{{- $name := include "hrbox.component" (dict "ctx" . "name" "file-processor") -}} {{/* Конвертация документов и обработка изображений. Конвертация видео здесь всегда выключена: она требует принципиально другого профиля ресурсов и живёт в отдельном деплойменте 09-file-processor-video. */}} --- apiVersion: apps/v1 kind: Deployment metadata: name: {{ $name }} labels: {{- include "hrbox.labels" (dict "ctx" . "name" "file-processor") | nindent 4 }} spec: minReadySeconds: 5 strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 1 replicas: {{ .Values.app.replicas.fileProcessor }} selector: matchLabels: {{- include "hrbox.selectorLabels" (dict "ctx" . "name" "file-processor") | nindent 6 }} template: metadata: labels: {{- include "hrbox.selectorLabels" (dict "ctx" . "name" "file-processor") | nindent 8 }} app: file-processor annotations: checksum/app-secret: {{ include (print $.Template.BasePath "/00-app-secret.yaml") . | sha256sum }} spec: {{- include "hrbox.imagePullSecrets" . | nindent 6 }} containers: - name: file-processor image: {{ .Values.image.fileProcessor | quote }} imagePullPolicy: {{ .Values.image.pullPolicy }} env: {{- include "envs_all" . | indent 12 }} - name: VIDEO_CONVERTER_ENABLED value: "false" {{- include "hrbox.resources" (dict "ctx" . "component" "fileProcessor") | indent 10 }}