-
Notifications
You must be signed in to change notification settings - Fork 22
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
Enable PersistentVolumeClaim name configuration variable #53
Comments
Hi, can you provide further details of the errors you encountered when using k8s-override? |
Hello @DawoudSheraz Of course. The error is the following:
Our
And if I run
|
I have to say we are looking forward for another solution, trying to convince our engineers to bring us permissions to create and modify pvcs dynamically (what I understand is the common behaviour). Just in case I would like to try this path, but I am not very enthusiastic as I think we'll encounter other blockers due to permission issues... |
Hey @yagouam, hope you are doing well.
So, what u can do is
Note: You can't change name of the PVC as code is now. With your proposed approach with new variable settings, it will create a new PVC(it won't override the name if someone had already run the launch and created the PVC with default name). So above seems to be the safe approach. Don't forget to migrate data from older PVC to newer PVC if you guys want to change the name for the PVC in your environment and delete the older PVC. |
Hi @Faraz32123 , thanks for your response! You are right, the error was in trying to modify the PVC once created, a forbidden behaviour in kubernetes. We finally created a fork of this plugin enabling multiple customizations in the volume patch, such as namespace, storageclass, and storage, because our environment does not provide a storageclass by default. Furthermore, we need to target a storageclass that provides a "Retain" ReclaimPolicy to prevent deleting the data accidentally, so even if we have a "default" SC in the cluster it wont't meet our needs as we share the cluster with multiple applications. We can close this issue as is it seems to be a particular problem of us. Thanks for supporting! |
Hello, I hope this is the right way to trace issues, if not let me know how could I ask for new features
We are trying to enable minio in our kubernetes environment, and as developers we have no permissions for creating PVC and our system administrator teammates want a different name for each PVC per environment.
Currently we cannot modify the PVC name, it is hardcoded in tutorminio/patches/k8s-volumes.
We've tryed to use the "k8s-override" hook to modify the previous file but it throws an error while launching
It would be nice to have a configuration variable such as MINIO_PVC_NAME to modify PVC name for each environment.
Thanks in advance
Kind regards!
The text was updated successfully, but these errors were encountered: