mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-21 06:11:31 +08:00
* 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>
25 lines
819 B
YAML
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 }}
|