Files
OpenShell/deploy/helm/openshell/templates/replica-services.yaml
Divesh 834b79a8c2 feat(server): place supervisor sessions by consistent hash (#3661)
* feat(server): place supervisor sessions by consistent hash and hand them off on shutdown

Signed-off-by: divesh <dgude@nvidia.com>

* feat: route long-lived sandbox connections to the owning gateway replica

Signed-off-by: divesh <dgude@nvidia.com>

* feat(helm): add opt-in per-replica GRPCRoute routing

Signed-off-by: divesh <dgude@nvidia.com>

---------

Signed-off-by: divesh <dgude@nvidia.com>
2026-10-07 05:01:32 +00:00

25 lines
819 B
YAML

{{- if and .Values.grpcRoute.enabled (dig "replicaRouting" "enabled" false .Values.grpcRoute) }}
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
{{- $fullname := include "openshell.fullname" . }}
{{- range $i := until (int (include "openshell.maxReplicas" $)) }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ printf "%s-replica-%d" $fullname $i }}
labels:
{{- include "openshell.labels" $ | nindent 4 }}
spec:
ports:
- port: {{ $.Values.service.port }}
targetPort: grpc
protocol: TCP
name: grpc
appProtocol: grpc
selector:
{{- include "openshell.selectorLabels" $ | nindent 4 }}
statefulset.kubernetes.io/pod-name: {{ printf "%s-%d" $fullname $i }}
{{- end }}
{{- end }}