-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy: add initial vllm worker chart
This change adds the initial version of the vLLM worker Helm chart. This is NOT the final values schema. Includes schema validation and embedded chart scripting to enable default values.
- Loading branch information
Showing
5 changed files
with
438 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
apiVersion: v2 | ||
appVersion: 1.0.0 | ||
description: Triton Distributed Worker Operator for vLLM | ||
description: Triton Distributed Worker for vLLM | ||
icon: https://www.nvidia.com/content/dam/en-zz/Solutions/about-nvidia/logo-and-brand/[email protected] | ||
name: triton-distributed_worker-vllm | ||
version: 1.0.0 |
88 changes: 88 additions & 0 deletions
88
deploy/Kubernetes/worker/charts/vllm/templates/_helpers.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Copyright (c) 2022-2025, NVIDIA CORPORATION. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Annotation Groups | ||
{{- define "annotations.default" }} | ||
triton-distributed: "{{ .Release.Name }}.{{ .Chart.AppVersion | default "0.0" }}" | ||
{{- with .Values.kubernetes }} | ||
{{- with .annotations }} | ||
{{ toYaml . }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{- define "annotations.chart" }} | ||
helm.sh/chart: {{ .Chart.Name | quote }} | ||
{{- template "annotations.default" . }} | ||
{{- end -}} | ||
|
||
# Label Groups | ||
{{- define "labels.default" }} | ||
{{- template "label.appInstance" . }} | ||
{{- template "label.appName" . }} | ||
{{- template "label.appPartOf" . }} | ||
{{- template "label.appVersion" . }} | ||
{{- end -}} | ||
|
||
{{- define "labels.chart" }} | ||
{{- template "labels.default" . }} | ||
{{- template "label.appManagedBy" . }} | ||
{{- template "label.chart" . }} | ||
{{- with .Values.kubernetes }} | ||
{{- with .labels }} | ||
{{ toYaml . }} | ||
{{- end }} | ||
{{- end }} | ||
{{- template "label.release" . }} | ||
{{- end -}} | ||
|
||
# Label Values | ||
{{- define "label.appInstance" }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{- define "label.appManagedBy" }} | ||
{{- $service_name := "triton-distributed" }} | ||
{{- with .Release.Service }} | ||
{{- $service_name = . }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ $service_name }} | ||
{{- end }} | ||
|
||
{{- define "label.appName" }} | ||
app.kubernetes.io/name: {{ required "Property '.triton.componentName' is required." .Values.triton.componentName }} | ||
{{- end }} | ||
|
||
{{- define "label.appPartOf" }} | ||
{{- $part_of := "triton-distributed" }} | ||
{{- with .Values.kubernetes }} | ||
{{- with .partOf }} | ||
{{- $part_of = . }} | ||
{{- end }} | ||
{{- end }} | ||
app.kubernetes.io/part-of: {{ $part_of }} | ||
{{- end }} | ||
|
||
{{- define "label.appVersion" }} | ||
app.kubernetes.io/version: {{ .Chart.Version | default "0.0" | quote }} | ||
{{- end }} | ||
|
||
{{- define "label.chart" }} | ||
helm.sh/chart: {{ .Chart.Name | quote }} | ||
helm.sh/version: {{ .Chart.Version | default "0.0" | quote }} | ||
{{- end }} | ||
|
||
{{- define "label.release" }} | ||
release: "{{ .Chart.Name }}_v{{ .Chart.Version | default "0.0" }}" | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.