From a2d3deac80d2f1b23614b510faf98f2c168f8d88 Mon Sep 17 00:00:00 2001 From: Adam Hendel Date: Thu, 12 Dec 2024 14:57:14 -0600 Subject: [PATCH] add replica to tembo-ai gateway helm template (#1071) --- charts/tembo-ai/Chart.yaml | 2 +- charts/tembo-ai/templates/inference-gateway/deployment.yaml | 3 +++ charts/tembo-ai/values.yaml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/tembo-ai/Chart.yaml b/charts/tembo-ai/Chart.yaml index 225f19f3f..c25bce218 100644 --- a/charts/tembo-ai/Chart.yaml +++ b/charts/tembo-ai/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.1 +version: 0.3.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/tembo-ai/templates/inference-gateway/deployment.yaml b/charts/tembo-ai/templates/inference-gateway/deployment.yaml index ae10adf27..c1162078a 100644 --- a/charts/tembo-ai/templates/inference-gateway/deployment.yaml +++ b/charts/tembo-ai/templates/inference-gateway/deployment.yaml @@ -5,6 +5,9 @@ metadata: labels: {{- include "tembo-ai.inferenceGateway.labels" . | nindent 4 }} spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} selector: matchLabels: {{- include "tembo-ai.inferenceGateway.selectorLabels" . | nindent 6 }} diff --git a/charts/tembo-ai/values.yaml b/charts/tembo-ai/values.yaml index 2dd852dd5..3ff1b8412 100644 --- a/charts/tembo-ai/values.yaml +++ b/charts/tembo-ai/values.yaml @@ -18,6 +18,7 @@ inferenceGateway: enabled: true path: /ready port: http + replicaCount: 1 autoscaling: enabled: true minReplicas: 1