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

Splunk Operator: Allowing to set the security context for indexer pods #1416

Open
ludo-zen opened this issue Dec 13, 2024 · 2 comments
Open
Assignees

Comments

@ludo-zen
Copy link

Please select the type of request

Feature Request

Tell us more

Describe the request

  • When an indexer is starting it mounts pvc volumes which have big size up to 64TB
    Sometimes when indexers restart they don't succeed to mount these pvc volumes
    We have this error below :

Unable to attach or mount volumes: unmounted volumes=[pvc-var], unattached volumes=[], failed to process volumes=[]: timed out waiting for the condition

Expected behavior

  • Indexers succeed to mount their pvc volumes quickly
    Like you already done for operator
    (
    * CSPL_2532: Change fsGroupChangePolicy to `OnRootMismatch` for Splunk Enterprise and Splunk operator.
    )
    We would like to have the same for indexers

k8s by default forces persmissions. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#configure-volume-permission-and-ownership-change-policy-for-pods

Define a security context for indexers,
crd has default value for fsGroupChangePolicy = "OnRootMismatch"

@ludo-zen
Copy link
Author

  • without that feature, in case the PVC is large (with lots of file), the PVC mounting process is very very slow
    So it will be very efficient and gain of time to have this feature up and running

@vivekr-splunk
Copy link
Collaborator

vivekr-splunk commented Dec 13, 2024 via email

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

2 participants