Files
OpenShell/deploy/helm/openshell/templates/statefulset.yaml
Taylor Mutch 7dab612feb feat(helm): support Deployment kind in HA gateway workloads (#1867)
* feat(helm): support Deployment kind in HA gateway workloads

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>

* fix(helm): handle null workload values

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>

---------

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
2026-06-10 23:52:07 +00:00

28 lines
864 B
YAML

# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
{{- include "openshell.validateValues" . }}
{{- if eq (include "openshell.workloadKind" .) "statefulset" }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ include "openshell.fullname" . }}
labels:
{{- include "openshell.labels" . | nindent 4 }}
spec:
serviceName: {{ include "openshell.fullname" . }}
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "openshell.selectorLabels" . | nindent 6 }}
template:
{{- include "openshell.gatewayPodTemplate" . | nindent 4 }}
volumeClaimTemplates:
- metadata:
name: openshell-data
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
{{- end }}