Skip to content

Commit

Permalink
tgi: loosen securityContext constraints
Browse files Browse the repository at this point in the history
Fix issue opea-project#639

Signed-off-by: Lianhao Lu <[email protected]>
  • Loading branch information
lianhao committed Dec 12, 2024
1 parent 39b96fb commit 9009207
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions helm-charts/common/tgi/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ data:
no_proxy: {{ .Values.global.no_proxy | quote }}
{{- if contains "tgi-gaudi" .Values.image.repository }}
HABANA_LOGS: "/tmp/habana_logs"
TRITON_CACHE_DIR: "/tmp/triton_cache"
{{- end }}
NUMBA_CACHE_DIR: "/tmp"
HF_HOME: "/tmp/.cache/huggingface"
Expand Down
8 changes: 4 additions & 4 deletions helm-charts/common/tgi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ podSecurityContext: {}
# fsGroup: 2000

securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 1000
# readOnlyRootFilesystem: true
# allowPrivilegeEscalation: false
# runAsNonRoot: true
# runAsUser: 1000
capabilities:
drop:
- ALL
Expand Down

0 comments on commit 9009207

Please sign in to comment.