From a1bef4833995d9ff4269236fc02cfea436a57b09 Mon Sep 17 00:00:00 2001 From: Vlad Bubnov Date: Thu, 12 Feb 2026 11:34:23 +0300 Subject: [PATCH] add fileprocessor --- .helm/templates/09-file-processor.yaml | 34 ++++++++++++++++++++++++++ .helm/values.yaml | 7 ++++++ 2 files changed, 41 insertions(+) create mode 100644 .helm/templates/09-file-processor.yaml diff --git a/.helm/templates/09-file-processor.yaml b/.helm/templates/09-file-processor.yaml new file mode 100644 index 0000000..200df85 --- /dev/null +++ b/.helm/templates/09-file-processor.yaml @@ -0,0 +1,34 @@ +--- +{{ $name := printf "%s-file-processor" (.Chart.Name) }} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ $name }} + labels: + app: file-processor +spec: + minReadySeconds: 5 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 + replicas: {{ .Values.app.file_processor.replicas }} + selector: + matchLabels: + service: {{ $name }} + template: + metadata: + labels: + service: {{ $name }} + spec: + imagePullSecrets: + - name: regsecret + containers: + - name: file-processor + image: {{ .Values.app.file_processor.image }} + imagePullPolicy: Always + env: + {{- include "envs_all" . | indent 12 }} + - name: VIDEO_CONVERTER_ENABLED + value: "false" diff --git a/.helm/values.yaml b/.helm/values.yaml index 509671f..e163427 100644 --- a/.helm/values.yaml +++ b/.helm/values.yaml @@ -183,6 +183,13 @@ app: # Если указано, будет смонтирован в /ca-cert secretName: "" + # File Processor - обработка файлов (конвертация, ресайз изображений) + file_processor: + # Docker образ file processor + image: "cr.yandex/crphnph9c2s776j32sjd/hrbox-file-processor:1.0" + # Количество реплик + replicas: 1 + # Document Converter - конвертер документов (PDF, DOCX и др.) document_converter: # Docker образ document converter