File tree Expand file tree Collapse file tree
microservices/dlstreamer-pipeline-server/helm/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 spec :
2020 securityContext :
2121 supplementalGroups : [109,110]
22+ runAsNonRoot : true
2223 {{- if and $.Values.DOCKER_USERNAME $.Values.DOCKER_PASSWORD }}
2324 imagePullSecrets :
2425 - name : registryauth
2930 imagePullPolicy : {{ $.Values.imagePullPolicy }}
3031 {{- if $.Values.privileged_access_required }}
3132 securityContext :
32- privileged : true # Required for direct access to /dev
33+ privileged : true # Required for direct access to /dev
34+ runAsNonRoot : true
35+ readOnlyRootFilesystem : true
36+ allowPrivilegeEscalation : false
37+ {{- else }}
38+ securityContext :
39+ runAsNonRoot : true
40+ readOnlyRootFilesystem : true
41+ allowPrivilegeEscalation : false
3342 {{- end }}
3443 {{- if $.Values.gpu.enabled }}
3544 resources :
7180 name : vol-pipeline-root-tmpfs0
7281 - name : dev
7382 mountPath : /dev
83+ readOnly : true # Reduce risk while preserving access to GPU
7484 - name : dev-shm
7585 mountPath : /dev/shm
7686 - name : tmp
You can’t perform that action at this time.
0 commit comments