Files
hrbox-helm-chart/.helm/templates/04-worker.yaml
T
2025-05-27 08:03:13 +03:00

33 lines
798 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}-worker
labels:
app: worker
spec:
minReadySeconds: 5
strategy:
type: Recreate
replicas: {{ .Values.app.replicas.worker }}
selector:
matchLabels:
service: {{ .Chart.Name }}-worker
template:
metadata:
labels:
service: {{ .Chart.Name }}-worker
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9253'
spec:
imagePullSecrets:
- name: regsecret
containers:
- name: worker
image: {{ .Values.app.image }}
command: ["hrbox-worker"]
env:
{{- include "envs_all" . | indent 12 }}
{{- include "worker_resources" . | indent 10}}
terminationGracePeriodSeconds: 600