Files
hrbox-helm-chart/.helm/templates/09-file-processor.yaml
T
2026-09-05 19:07:31 +06:00

38 lines
1.3 KiB
YAML

{{- $name := include "hrbox.component" (dict "ctx" . "name" "file-processor") -}}
---
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 }}