Skip to content

Commit a2b3d38

Browse files
Merge branch 'main' into main
2 parents da50579 + 7d016e9 commit a2b3d38

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

helm/templates/deployment-router.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,18 @@ spec:
4141
{{- toYaml . | nindent 12 }}
4242
{{- end }}
4343
{{- end }}
44+
{{- if .Values.routerSpec.securityContext }}
45+
securityContext:
46+
{{- toYaml .Values.routerSpec.securityContext | nindent 8 }}
47+
{{- end }}
4448
containers:
4549
- name: router-container
4650
image: "{{ .Values.routerSpec.repository | default "lmcache/lmstack-router" }}:{{ .Values.routerSpec.tag | default "latest" }}"
4751
imagePullPolicy: "{{ .Values.routerSpec.imagePullPolicy | default "Always" }}"
52+
{{- if .Values.routerSpec.containerSecurityContext }}
53+
securityContext:
54+
{{- toYaml .Values.routerSpec.containerSecurityContext | nindent 10 }}
55+
{{- end }}
4856
env:
4957
{{- if .Values.routerSpec.hf_token }}
5058
- name: HF_TOKEN

helm/templates/deployment-vllm-multi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ spec:
8686
{{- toYaml . | nindent 12 }}
8787
{{- end }}
8888
{{- end }}
89+
{{- if .Values.servingEngineSpec.containerSecurityContext }}
90+
securityContext:
91+
{{- toYaml .Values.servingEngineSpec.containerSecurityContext | nindent 12 }}
92+
{{- end }}
8993
{{- end }}
9094
{{- if .Values.servingEngineSpec.securityContext }}
9195
securityContext:

helm/values.schema.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,17 @@
487487
"containerPort": {
488488
"type": "integer"
489489
},
490+
"securityContext": {
491+
"type": "object",
492+
"description": "Pod-level security context configuration",
493+
"additionalProperties": true
494+
},
495+
"containerSecurityContext": {
496+
"type": "object",
497+
"description": "Container-level security context configuration",
498+
"additionalProperties": true
499+
},
500+
490501
"servicePort": {
491502
"type": "integer"
492503
},

helm/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,12 @@ routerSpec:
312312
tag: "latest"
313313
imagePullPolicy: "Always"
314314

315+
# -- Pod-level security context configuration. https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.32/#podsecuritycontext-v1-core
316+
securityContext: {}
317+
318+
# -- Container-level security context configuration. https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.32/#securitycontext-v1-core
319+
containerSecurityContext: {}
320+
315321
# -- Whether to enable the router service
316322
enableRouter: true
317323

0 commit comments

Comments
 (0)