Skip to content

Commit

Permalink
Add securitycontext to kuberay operator (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornsen authored Mar 21, 2024
1 parent 48d40e6 commit 551c24a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ batchScheduler:

# Set up `securityContext` to improve Pod security.
# See https://github.com/ray-project/kuberay/blob/master/docs/guidance/pod-security.md for further guidance.
securityContext: {}
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
runAsNonRoot: true


# If rbacEnable is set to false, no RBAC resources will be created, including the Role for leader election, the Role for Pods and Services, and so on.
Expand Down
8 changes: 7 additions & 1 deletion modules/kuberay-operator/kuberay-operator-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ batchScheduler:

# Set up `securityContext` to improve Pod security.
# See https://github.com/ray-project/kuberay/blob/master/docs/guidance/pod-security.md for further guidance.
securityContext: {}
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
runAsNonRoot: true


# If rbacEnable is set to false, no RBAC resources will be created, including the Role for leader election, the Role for Pods and Services, and so on.
Expand Down

0 comments on commit 551c24a

Please sign in to comment.