Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions applications/kserve/kserve/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,25 @@ patches:
seccompProfile:
type: RuntimeDefault

# Make the KServe storage initializer init container restricted-PSS compatible
- patch: |
apiVersion: serving.kserve.io/v1alpha1
kind: ClusterStorageContainer
metadata:
name: default
namespace: kubeflow
spec:
container:
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
runAsUser: 1000

does it work without this line? please test.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure !

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the PR

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed: it works without runAsUser, and that is what master ships now via #3515 (kustomization.yaml#L24-L43). kserve/storage-initializer:v0.19.0 and v0.20.0 declare OCI User: "1000", so runAsNonRoot: true is verifiable without the manifest repeating the number. Closing this pull request as superseded.

seccompProfile:
type: RuntimeDefault

# Delete ALL insecure LLMInferenceServiceConfig resources
# IPC_LOCK, SYS_RAWIO, NET_RAW capabilities, runAsNonRoot: false
# Ref: https://github.com/kubeflow/community-distribution/issues/3290
Expand Down
Loading