Skip to content

Commit 75b21b6

Browse files
committed
Merge branch 'llm-d-incubation:main' into statefulset
2 parents 17ceeea + dc67cd2 commit 75b21b6

17 files changed

Lines changed: 77 additions & 64 deletions

charts/llm-d-modelservice/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type: application
1313
# This is the chart version. This version number should be incremented each time you make changes
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
16-
version: "v0.4.12"
16+
version: "v0.4.15"
1717
# This is the version number of the application being deployed. This version number should be
1818
# incremented each time you make changes to the application. Versions are not expected to
1919
# follow Semantic Versioning. They should reflect the version the application is using.

charts/llm-d-modelservice/templates/_helpers.tpl

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ affinity:
159159
{{- end }}
160160
image: {{ required "routing.proxy.image must be specified" .proxy.image }}
161161
imagePullPolicy: {{ default "Always" .proxy.imagePullPolicy }}
162-
env:
163162
{{- if and .Values.tracing .Values.tracing.enabled }}
163+
env:
164164
- name: OTEL_SERVICE_NAME
165165
value: {{ .Values.tracing.serviceNames.routingProxy | quote }}
166166
- name: OTEL_EXPORTER_OTLP_ENDPOINT
@@ -174,7 +174,11 @@ affinity:
174174
{{- end }}
175175
ports:
176176
- containerPort: {{ default 8000 .servicePort }}
177+
{{- if .proxy.resources }}
178+
resources: {{- toYaml .proxy.resources | nindent 4 }}
179+
{{- else }}
177180
resources: {}
181+
{{- end }}
178182
restartPolicy: Always
179183
securityContext:
180184
allowPrivilegeEscalation: false
@@ -291,14 +295,23 @@ nvidia.com/gpu
291295
{{- end -}}
292296
{{- end }}
293297

294-
{{/* Get accelerator environment variables based on type */}}
298+
{{/*
299+
Get accelerator environment variables based on type.
300+
Filter out any that are
301+
*/}}
295302
{{- define "llm-d-modelservice.acceleratorEnv" -}}
296303
{{- $acceleratorType := include "llm-d-modelservice.acceleratorType" . -}}
297304
{{- if and (ne $acceleratorType "cpu") (hasKey .Values.accelerator.env $acceleratorType) -}}
298305
{{- $envVars := index .Values.accelerator.env $acceleratorType -}}
306+
{{- $userNames := list -}}
307+
{{- range (default (list) .container.env) -}}
308+
{{- $userNames = append $userNames .name -}}
309+
{{- end -}}
299310
{{- range $envVars }}
311+
{{- if not (has .name $userNames) }}
300312
- name: {{ .name }}
301313
value: {{ .value | quote }}
314+
{{- end }}
302315
{{- end -}}
303316
{{- end -}}
304317
{{- end }}

charts/llm-d-modelservice/values.schema.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@
480480
"description": "Selects a key from a ConfigMap.",
481481
"properties": {
482482
"key": {
483-
"description": "The key to select.",
483+
"description": "The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars.",
484484
"type": "string"
485485
},
486486
"name": {
@@ -617,7 +617,7 @@
617617
"description": "EnvFromSource represents the source of a set of ConfigMaps or Secrets",
618618
"properties": {
619619
"configMapRef": {
620-
"description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.",
620+
"description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. Keys in the BinaryData field are not currently propagated to container env vars.",
621621
"properties": {
622622
"name": {
623623
"description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
@@ -1707,7 +1707,7 @@
17071707
"description": "VolumeMount describes a mounting of a Volume within a container.",
17081708
"properties": {
17091709
"mountPath": {
1710-
"description": "Path within the container at which the volume should be mounted. Must not contain ':'.",
1710+
"description": "Path within the container at which the volume should be mounted.",
17111711
"type": "string"
17121712
},
17131713
"mountPropagation": {
@@ -2089,7 +2089,7 @@
20892089
"description": "Selects a key from a ConfigMap.",
20902090
"properties": {
20912091
"key": {
2092-
"description": "The key to select.",
2092+
"description": "The key to select from the ConfigMap's Data field. Keys in the BinaryData field are not currently propagated to container env vars.",
20932093
"type": "string"
20942094
},
20952095
"name": {
@@ -2226,7 +2226,7 @@
22262226
"description": "EnvFromSource represents the source of a set of ConfigMaps or Secrets",
22272227
"properties": {
22282228
"configMapRef": {
2229-
"description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.",
2229+
"description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. Keys in the BinaryData field are not currently propagated to container env vars.",
22302230
"properties": {
22312231
"name": {
22322232
"description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
@@ -3316,7 +3316,7 @@
33163316
"description": "VolumeMount describes a mounting of a Volume within a container.",
33173317
"properties": {
33183318
"mountPath": {
3319-
"description": "Path within the container at which the volume should be mounted. Must not contain ':'.",
3319+
"description": "Path within the container at which the volume should be mounted.",
33203320
"type": "string"
33213321
},
33223322
"mountPropagation": {
@@ -3632,6 +3632,13 @@
36323632
"title": "imagePullPolicy",
36333633
"type": "string"
36343634
},
3635+
"resources": {
3636+
"additionalProperties": true,
3637+
"description": "Resource requests and limits for the routing proxy sidecar container. When not set, no resource constraints are applied (resources: {}). @schema type: object additionalProperties: true @schema",
3638+
"required": [],
3639+
"title": "resources",
3640+
"type": "object"
3641+
},
36353642
"secure": {
36363643
"default": false,
36373644
"description": "Boolean: adds the `--secure-proxy` flag to the routingSidecar with your chosen value. Arg is ommitted by default for compatability with legacy sidecar images.",

charts/llm-d-modelservice/values.schema.tmpl.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,13 @@
10041004
"title": "imagePullPolicy",
10051005
"type": "string"
10061006
},
1007+
"resources": {
1008+
"additionalProperties": true,
1009+
"description": "Resource requests and limits for the routing proxy sidecar container. When not set, no resource constraints are applied (resources: {}). @schema type: object additionalProperties: true @schema",
1010+
"required": [],
1011+
"title": "resources",
1012+
"type": "object"
1013+
},
10071014
"secure": {
10081015
"default": false,
10091016
"description": "Boolean: adds the `--secure-proxy` flag to the routingSidecar with your chosen value. Arg is ommitted by default for compatability with legacy sidecar images.",

charts/llm-d-modelservice/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,14 @@ routing:
251251
# @schema
252252
# zapTimeEncoding: epoch
253253

254+
# -- Resource requests and limits for the routing proxy sidecar container.
255+
# When not set, no resource constraints are applied (resources: {}).
256+
# @schema
257+
# type: object
258+
# additionalProperties: true
259+
# @schema
260+
resources: {}
261+
254262
# @schema
255263
# additionalProperties: true
256264
# @schema

examples/output-cpu.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kind: ServiceAccount
66
metadata:
77
name: cpu-sim-llm-d-modelservice
88
labels:
9-
helm.sh/chart: llm-d-modelservice-v0.4.12
9+
helm.sh/chart: llm-d-modelservice-v0.4.15
1010
app.kubernetes.io/version: "v0.4.0"
1111
app.kubernetes.io/managed-by: Helm
1212
---
@@ -16,7 +16,7 @@ kind: Deployment
1616
metadata:
1717
name: cpu-sim-llm-d-modelservice-decode
1818
labels:
19-
helm.sh/chart: llm-d-modelservice-v0.4.12
19+
helm.sh/chart: llm-d-modelservice-v0.4.15
2020
app.kubernetes.io/version: "v0.4.0"
2121
app.kubernetes.io/managed-by: Helm
2222
spec:
@@ -44,7 +44,6 @@ spec:
4444
- --secure-proxy=false
4545
image: ghcr.io/llm-d/llm-d-routing-sidecar:latest
4646
imagePullPolicy: Always
47-
env:
4847
ports:
4948
- containerPort: 8000
5049
resources: {}
@@ -106,7 +105,7 @@ kind: Deployment
106105
metadata:
107106
name: cpu-sim-llm-d-modelservice-prefill
108107
labels:
109-
helm.sh/chart: llm-d-modelservice-v0.4.12
108+
helm.sh/chart: llm-d-modelservice-v0.4.15
110109
app.kubernetes.io/version: "v0.4.0"
111110
app.kubernetes.io/managed-by: Helm
112111
spec:

examples/output-dra.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kind: ServiceAccount
66
metadata:
77
name: dra-llm-d-modelservice
88
labels:
9-
helm.sh/chart: llm-d-modelservice-v0.4.12
9+
helm.sh/chart: llm-d-modelservice-v0.4.15
1010
app.kubernetes.io/version: "v0.4.0"
1111
app.kubernetes.io/managed-by: Helm
1212
---
@@ -16,7 +16,7 @@ kind: Deployment
1616
metadata:
1717
name: dra-llm-d-modelservice-decode
1818
labels:
19-
helm.sh/chart: llm-d-modelservice-v0.4.12
19+
helm.sh/chart: llm-d-modelservice-v0.4.15
2020
app.kubernetes.io/version: "v0.4.0"
2121
app.kubernetes.io/managed-by: Helm
2222
spec:
@@ -116,7 +116,7 @@ kind: ResourceClaimTemplate
116116
metadata:
117117
name: intel-gaudi-claim-template-decode
118118
labels:
119-
helm.sh/chart: llm-d-modelservice-v0.4.12
119+
helm.sh/chart: llm-d-modelservice-v0.4.15
120120
app.kubernetes.io/version: "v0.4.0"
121121
app.kubernetes.io/managed-by: Helm
122122
llm-d.ai/role: decode

examples/output-gaudi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kind: ServiceAccount
66
metadata:
77
name: gaudi-llm-d-modelservice
88
labels:
9-
helm.sh/chart: llm-d-modelservice-v0.4.12
9+
helm.sh/chart: llm-d-modelservice-v0.4.15
1010
app.kubernetes.io/version: "v0.4.0"
1111
app.kubernetes.io/managed-by: Helm
1212
---
@@ -16,7 +16,7 @@ kind: Deployment
1616
metadata:
1717
name: gaudi-llm-d-modelservice-decode
1818
labels:
19-
helm.sh/chart: llm-d-modelservice-v0.4.12
19+
helm.sh/chart: llm-d-modelservice-v0.4.15
2020
app.kubernetes.io/version: "v0.4.0"
2121
app.kubernetes.io/managed-by: Helm
2222
spec:

examples/output-heterogeneous-pd.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kind: ServiceAccount
66
metadata:
77
name: heterogeneous-pd-llm-d-modelservice
88
labels:
9-
helm.sh/chart: llm-d-modelservice-v0.4.12
9+
helm.sh/chart: llm-d-modelservice-v0.4.15
1010
app.kubernetes.io/version: "v0.4.0"
1111
app.kubernetes.io/managed-by: Helm
1212
---
@@ -16,7 +16,7 @@ kind: Deployment
1616
metadata:
1717
name: heterogeneous-pd-llm-d-modelservice-decode
1818
labels:
19-
helm.sh/chart: llm-d-modelservice-v0.4.12
19+
helm.sh/chart: llm-d-modelservice-v0.4.15
2020
app.kubernetes.io/version: "v0.4.0"
2121
app.kubernetes.io/managed-by: Helm
2222
spec:
@@ -44,7 +44,6 @@ spec:
4444
- --secure-proxy=false
4545
image: ghcr.io/llm-d/llm-d-routing-sidecar:latest
4646
imagePullPolicy: Always
47-
env:
4847
ports:
4948
- containerPort: 8000
5049
resources: {}
@@ -132,7 +131,7 @@ kind: Deployment
132131
metadata:
133132
name: heterogeneous-pd-llm-d-modelservice-prefill
134133
labels:
135-
helm.sh/chart: llm-d-modelservice-v0.4.12
134+
helm.sh/chart: llm-d-modelservice-v0.4.15
136135
app.kubernetes.io/version: "v0.4.0"
137136
app.kubernetes.io/managed-by: Helm
138137
spec:
@@ -225,7 +224,7 @@ kind: ResourceClaimTemplate
225224
metadata:
226225
name: nvidia-claim-template-decode
227226
labels:
228-
helm.sh/chart: llm-d-modelservice-v0.4.12
227+
helm.sh/chart: llm-d-modelservice-v0.4.15
229228
app.kubernetes.io/version: "v0.4.0"
230229
app.kubernetes.io/managed-by: Helm
231230
llm-d.ai/role: decode

examples/output-pd-mnnvl.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kind: ServiceAccount
66
metadata:
77
name: pd-mnnvl-llm-d-modelservice
88
labels:
9-
helm.sh/chart: llm-d-modelservice-v0.4.12
9+
helm.sh/chart: llm-d-modelservice-v0.4.15
1010
app.kubernetes.io/version: "v0.4.0"
1111
app.kubernetes.io/managed-by: Helm
1212
---
@@ -16,7 +16,7 @@ kind: Deployment
1616
metadata:
1717
name: pd-mnnvl-llm-d-modelservice-decode
1818
labels:
19-
helm.sh/chart: llm-d-modelservice-v0.4.12
19+
helm.sh/chart: llm-d-modelservice-v0.4.15
2020
app.kubernetes.io/version: "v0.4.0"
2121
app.kubernetes.io/managed-by: Helm
2222
spec:
@@ -44,7 +44,6 @@ spec:
4444
- --secure-proxy=false
4545
image: ghcr.io/llm-d/llm-d-routing-sidecar:latest
4646
imagePullPolicy: Always
47-
env:
4847
ports:
4948
- containerPort: 8000
5049
resources: {}
@@ -132,7 +131,7 @@ kind: Deployment
132131
metadata:
133132
name: pd-mnnvl-llm-d-modelservice-prefill
134133
labels:
135-
helm.sh/chart: llm-d-modelservice-v0.4.12
134+
helm.sh/chart: llm-d-modelservice-v0.4.15
136135
app.kubernetes.io/version: "v0.4.0"
137136
app.kubernetes.io/managed-by: Helm
138137
spec:

0 commit comments

Comments
 (0)