Files
hrbox-helm-chart/.helm/templates/09-goworker.yaml
T
2026-01-30 12:13:23 +03:00

53 lines
1.1 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}-goworker
labels:
app: goworker
spec:
minReadySeconds: 5
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
replicas: {{ .Values.app.goworker.replicas }}
selector:
matchLabels:
service: {{ .Chart.Name }}-goworker
template:
metadata:
labels:
service: {{ .Chart.Name }}-goworker
spec:
imagePullSecrets:
- name: regsecret
containers:
- name: goworker
stdin: true
tty: true
image: {{ .Values.app.goworker.image }}
imagePullPolicy: Always
env:
{{- include "envs_all" . | indent 12 }}
{{- include "goworker_resources" . | indent 10 }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Chart.Name }}-goworker
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8686"
prometheus.io/path: "/metrics"
spec:
selector:
service: {{ .Chart.Name }}-goworker
ports:
- name: http
port: 8686
targetPort: 8686
protocol: TCP