diff --git a/charts/trino/templates/deployment-worker.yaml b/charts/trino/templates/deployment-worker.yaml index a07464ca..ef538c07 100644 --- a/charts/trino/templates/deployment-worker.yaml +++ b/charts/trino/templates/deployment-worker.yaml @@ -10,7 +10,9 @@ metadata: heritage: {{ .Release.Service }} component: worker spec: + {{- if not .Values.server.autoscaling.enabled }} replicas: {{ .Values.server.workers }} + {{- end }} selector: matchLabels: app: {{ template "trino.name" . }}