diff --git a/helm/librechat/templates/service.yaml b/helm/librechat/templates/service.yaml index d2b778bb0b..cc3436b5d6 100755 --- a/helm/librechat/templates/service.yaml +++ b/helm/librechat/templates/service.yaml @@ -8,6 +8,9 @@ metadata: {{- toYaml .Values.service.annotations | nindent 4 }} spec: type: {{ .Values.service.type }} + {{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerClass }} + loadBalancerClass: {{ .Values.service.loadBalancerClass | quote }} + {{- end }} ports: - port: {{ .Values.service.port }} targetPort: http diff --git a/helm/librechat/values.yaml b/helm/librechat/values.yaml index e5321c2a93..e94d3b1c17 100755 --- a/helm/librechat/values.yaml +++ b/helm/librechat/values.yaml @@ -177,6 +177,7 @@ securityContext: service: type: ClusterIP # LoadBalancer, NodePort, ClusterIP + loadBalancerClass: "" port: 3080 targetPort: 3080 containerPort: 3080