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

Support Pod's securityContext.fsGroupChangePolicy #4

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

vpbarb
Copy link
Collaborator

@vpbarb vpbarb commented Mar 15, 2024

I think I found the reason of timeouts when NFS volume is mounted: https://blog.devgenius.io/when-k8s-pods-are-stuck-mounting-large-volumes-2915e6656cb8

template:
  spec:
    containers:
      ...
    securityContext:
      fsGroup: 10001
      runAsGroup: 10001
      runAsNonRoot: true
      runAsUser: 10001
      fsGroupChangePolicy: "OnRootMismatch"

With OnRootMismatch the pod doesn't try to change all files owner in the mounted folder.

To support this, I need to update SparkApplication CRD.

This change is tested in ml-stage (by manual editing of CRD) for the streaming data ingestion jobs that were today very slow to start because of the mounting timeouts.

@vpbarb vpbarb merged commit cbcd9a1 into master Mar 15, 2024
4 of 7 checks passed
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

Successfully merging this pull request may close these issues.

3 participants