Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add security context to Kubernetes batch system #5179

Open
xhejtman opened this issue Dec 9, 2024 · 0 comments
Open

Add security context to Kubernetes batch system #5179

xhejtman opened this issue Dec 9, 2024 · 0 comments

Comments

@xhejtman
Copy link

xhejtman commented Dec 9, 2024

Kubernetes clusters are moving to increased security through Pod Security Admission. It would be great, if this could be set as parameters so that K8s Jobs can run even in such restricted environments.

In particular, we need to set the Pod security context:

securityContext: 
  fsGroupChangePolicy: OnRootMismatch
  runAsNonRoot: true
  seccompProfile:
    type: RuntimeDefault

and Container securityContext:

securityContext: 
  runAsUser: 1000
  allowPrivilegeEscalation: false
  capabilities:
    drop:
    - ALL

┆Issue is synchronized with this Jira Story
┆Issue Number: TOIL-1686

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant