-
Notifications
You must be signed in to change notification settings - Fork 147
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
replsets.podSecurityContext doesn't work #1648
Comments
hi @drblack666 I have tested "podSecurityContext" with psmdb operator 1.17.0 and it works for me. As you can see in example I changed uid and group from 1001 to 1002.
It works for me as well.
I used GKE 1.30.
As I know not all containers runtimes support changing sysctls via podSecurityContext. |
Hi @drblack666, do you have any additional questions? Can we close this task? |
Unfortunatly, I can't check it right now because I don't use GKE and my k8s is 1.29 and psmdb operator 1.16. I'll try this later, hopefully update will help |
Report
Sysctls values in the option
replsets.podSecurityContext
causes the pod to get stuck in CrashLoopBackOff state.More about the problem
I need to change
sysctls
params, so I addedpodSecurityContext
to thereplsets
section:After these changes pod got stuck in the CrashLoopBackOff state.
I also tried adding some other options to
podSecurityContext
with the same result (in pod I can see this userroot:x:0:0:root:/root:/bin/bash
):I use
perconalab/percona-server-mongodb-operator:1.16.0
and crVersion is 1.16.0Steps to reproduce
replsets.podSecurityContext
sectionVersions
Operator (
perconalab/percona-server-mongodb-operator:1.16.0
and crVersion is 1.16.0)Anything else?
Kubernetes version v1.29.7
The text was updated successfully, but these errors were encountered: