File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed
Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments