-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[bitnami/minio] Access Denied when Deploying Bitnami/MinIO 2021.3.26-debian-10-r1 #5951
Comments
Hi @ethernoy, could you share more details on how you're deploying Minio? It works for me.
|
Also, make sure that there isn't any PVC from a previous deployment. If not, it may fail due to deploying with the wrong credentials, causing errors like:
|
Hi @marcosbc Attached is the content of value.yaml I use in the deployment:
here is the content of myStorageClass:
|
Please also share more information like the deployment error you are seeing before the pod gets restarted. Did you check if there could exist an existing PVC where Minio data is stored with different credentials than the ones you set? |
Most of the MinIO ends with the following log pattern, while seldomly it has other logs before it terminates, but I did not manage to capture one yet.
|
Hi @ethernoy, the error looks like it could be related to there being an existing PVC:
I still haven't got confirmation from your side that you've checked if that could be the case. You can get the list of PVCs with Could you recommend in another namespace and/or release name and check if it works? Make sure the release name is unique in the namespace (i.e. |
I just tested two cases:
Both test resulted in the same “Access Denied” error we discussed above |
Hi @ethernoy, I'm checking your configuration and I don't understand this:
That will cause Minio to run as a root user. Currently it is not supported by the Docker image as there seems to be a bug where the
If I remove that configuration, I'm able to workaround that error. Could you try it? |
I believe it is not related to runAsRoot configuration. I tested under following cases:
Here is the non-root values.yaml I used:
Installing Bitnami MinIO using this values.yaml still results in access denied error: |
Hi, I'm going to forward this case to @juan131 who has more experience with MinIO. I'm finding some issues myself, although not related to your error (which I'm able to get past without issues). In the meantime, it would be great if you could share more specs on your Kubernetes cluster. For instance, is it a vanilla Kubernetes cluster or are you running on a Kubernetes distribution? Could it also be that you are running a MinIO image based on Photon, from TAC? |
Hi @ethernoy I agree with @marcosbc that the "securityContext" shouldn't be forcing the container to run as user "0", so please ensure you're including the section below in your values.yaml: securityContext:
enabled: true
fsGroup: 1001
runAsUser: 1001 You'll have to ensure that your cluster has support for changing the ownership and permissions for the contents of each volume. See: Also, we're finding some issues with the "default buckets" feature in distributed mode. Therefore, I recommend you to remove the parameter |
Hi, just double confirmed, when deploying with the default securityContext and disabled default bucket, Bitnami MinIO can work normally. |
Great!! I'll set a reminder to myself to see how can we modify the approach we're using to create the "default buckets" with the distributed mode. It's clearly not working as expected. |
I am curious, is this issue related only to the Bitnami MinIO chart and can be solved by chart modification solely, or is it related to the Bitnami MinIO docker image too? |
I'd say that both @ethernoy It can be solved by improving the logic in the Bitnami MinIO container image which is not properly managing the buckets' creation when a distributed mode is used. |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
any news? |
Unfortunately, there was no internal progress on this task and I'm afraid that, if it was not prioritized during this time, there's not much chance we'll be working on it in the short term. Since we are a small team maintaining a lot of assets it is difficult to find the bandwidth to implement all the requests. Being said that, thanks for reporting this issue and to be on top of it. Would you like to contribute by creating a PR to solve the issue? The Bitnami team will be happy to review it and provide feedback. Here you can find the contributing guidelines. |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
I had this problem with a minikube, since i just needed it for testing purposes I added The Full Command being: helm install minio bitnami/minio --namespace minio --create-namespace --set image.debug="true" --set service.type="ClusterIP" --set persistence.enabled="false" |
If there's no storage system or persistence, it makes sense that this error would not occur. I would argue it is not relevant to the issue discussed here. |
Which chart:
MinIO ( 6.7.1 )
Describe the bug
Encountered access denied error when deploying image Bitnami/MinIO 2021.3.26-debian-10-r1 using distributed mode. MinIO container restarts after this error occurs.
To Reproduce
Steps to reproduce the behavior:
Deploy Bitnami/MinIO 2021.3.26-debian-10-r1 using distributed mode.
Expected behavior
MinIO works normally
Version of Helm and Kubernetes:
helm version
:kubectl version
:Additional context
The kernel I am running MinIO on is 4.19.129-1.ph3-esx. Admission controller is enabled and MinIO is granted root permission.
The text was updated successfully, but these errors were encountered: