-
Notifications
You must be signed in to change notification settings - Fork 917
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
kubectl karmada init get error mkdir /etc/karmada: permission denied #6080
Comments
Instead
|
I remember we fixed this issue recently, @zhzhuang-zju is it you sent the PR? |
The command I fixed is flags.StringVarP(&opts.KarmadaDataPath, "karmada-data", "d", "/etc/karmada", "Karmada data path. kubeconfig cert and crds files")
flags.StringVarP(&opts.KarmadaPkiPath, "karmada-pki", "", "/etc/karmada/pki", "Karmada pki path. Karmada cert files") @olariuromeo You can set these two flags to customize the file paths, thereby avoiding issues related to insufficient permissions, for example, $ kubectl karmada init --crds https://github.com/karmada-io/karmada/releases/download/v1.2.0/crds.tar.gz --kubeconfig=$HOME/.kube/host.config --karmada-data=${HOME}/karmada --karmada-pki=${HOME}/karmada/pki |
Thanks, I'll try that, in this case the documentation should be modified: https://karmada.io/docs/installation/#install-karmada-in-kind-cluster |
Yes, the previous documentation did not provide detailed instructions for operations by non-root users. It would be valuable to update the documentation to include this information. |
Ok now it started correctly. So who wants to start automatically in 2 minutes here is the script
regards
|
Yes, I will do that, thank you. |
/kind question |
/remove-kind bug |
@olariuromeo Nice work, I saw you pr and it did fixed this issue |
What happened:
What you expected to happen:
init karmada cluster The official documentation states that it is possible to execute it without sudo. However, I’m currently trying to start Karmada locally without using sudo, but it refuses to do so. I’m confused as to why it attempts to access the /etc/ directory when the command clearly indicates that it shouldn’t require sudo permissions: https://karmada.io/docs/installation/#install-karmada-in-kind-cluster kubectl works perfectly without sudo I don't understand why karmada would need it, it should just make a virtual cluster in kind
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
ubuntu 22.04
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: