-
Notifications
You must be signed in to change notification settings - Fork 73
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
ArangoDB Operator fail with unprivileged PodSecurityPolicy #808
Comments
Hello! ArangoMember Pods are prepared to be configured to work in a fully protected environment, but I see that something is missing on the Operator level. Can you say what is missing in the Deployment template? The operator is not using anything on FileSystem, so change can be propagated easily. Best Regards, |
Hello Adam, thank you for your message! I cannot find how to resolve the problem but I can share with you all the information that I can provide you. Describe of the arangodb-operator deployment is:
Also, describe of the ReplicaSet is:
|
Hi @ognjen-it Can you show me your |
Hi @informalict Thank you for your response! Role and RoleBing:
|
I was able to reproduce the same issue with your settings. I can see that namespace for the When I changed |
Great, the problem is resolved. It was my mistake. However, now I'm getting a new error when I try to deploy the cluster. The error is related to PSP.
Also, here are some commands that I did to investigate what happened.
My deployment script is:
Could you please reproduce the same issue on your cluster? Actually, check if the error is the same? |
@ognjen-it please try the following excerpt:
I have added:
to run all containers as non-root. You can change the user 1000 to something else if it is necessary. |
Thank you @informalict , I checked it and it works in my local env. |
sadly |
Hi @vbasem
|
@informalict First of all, BIG thank you for your support! Regarding deployment of the cluster it's ok because the securityContext can be set, but what about the operator? How to change the fsGroup for it? I didn't find how to change it from the Values.yaml
|
while fsGroup is not used from the securitycontext to be used into the id container, we found out that the problem lies with the docker image sof the id container itself. The alpine image has With that fixed, setting the user group to 0, solves the issue. Now I have to create an issue in that repo for it! |
@vbasem could you please send to us a link to the issue that you created? |
sure here is the issue |
@ognjen-it Security context for Operator can be skipped, it is anyway full limited one. Operator does not use FileSystem, it runs as user with id 1000 (thats why it is not exposed). Operator is able to run with fully secured environment by default. |
Hi @ognjen-it Can this issue be closed? |
Hi @informalict the issue could be closed but it's not resolved. I can't keep researching because I don't have the resources (time) until the end of the year. Big thank you for your support! |
@ognjen-it, so I am closing it. If you encounter the issue again please reopen it |
Hello all,
I have a problem when I try to install the ArangoDB operator on Kubernetes with an unprivileged policy.
The error looks like:
Warning FailedCreate 5m35s (x18 over 16m) replicaset-controller Error creating: pods "arango-ts-operator-7c8cf4cf7d-" is forbidden: PodSecurityPolicy: unable to admit pod: []
The policy is:
CRD:
helm -n arangodb-operator install arangodb-operator-crd https://github.com/arangodb/kube-arangodb/releases/download/1.2.3/kube-arangodb-crd-1.2.3.tgz
Operator:
helm -n arangodb-operator install ts https://github.com/arangodb/kube-arangodb/releases/download/1.2.3/kube-arangodb-1.2.3.tgz
Does anyone know how to resolve that? Or is it possible to resolve that?
#677 This problem may be related
The text was updated successfully, but these errors were encountered: