karmada: kubectl-karmada init failing with error

What happened:

kubectl-karmada when invoking init is failing with error error: failed to create directory: /etc/karmada, error: mkdir /etc/karmada: permission denied

What you expected to happen: init command should successfully install Karmada control plane

How to reproduce it (as minimally and precisely as possible):

  1. Install single node k3s cluster
  2. Install kubectl-karmada
  3. Run kubectl karmada init

Anything else we need to know?:

Environment:

  • kubectl-karmada or karmadactl version (the result of kubectl-karmada version or karmadactl version):
kubectl karmada version: version.Info{GitVersion:"v1.6.0", GitCommit:"6eb79b38949e480cf7a2e12cfa56fef47bda81ea", GitTreeState:"clean", BuildDate:"2023-05-31T09:55:31Z", GoVersion:"go1.20.4", Compiler:"gc", Platform:"linux/amd64"}

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (10 by maintainers)

Most upvoted comments

Thanks for your suggestion. I’ll invite init author here to comment. @lonelyCZ

I’m quite sure about does init really requires root permission?