Skip to content
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

Can kube rbac proxy be used for kubeedge? #273

Closed
thinkeng opened this issue Dec 21, 2023 · 3 comments
Closed

Can kube rbac proxy be used for kubeedge? #273

thinkeng opened this issue Dec 21, 2023 · 3 comments

Comments

@thinkeng
Copy link

Can kube rbac proxy be used for kubeedge? I reported the following error while using it

E1219 11:20:05.546400 943991 run.go:74] "command failed" err="failed to load kubeconfig: cannot find Service Account in pod to build in-cluster rest config: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined"

@ibihim
Copy link
Collaborator

ibihim commented Jan 26, 2024

I can't say much about KubeEdge as I don't have any experience with it.

Failed to load kubeconfig happens, when it can't find a kubeconfig. It uses to look at well known places for it otherwise it needs to be specified with the --kubeconfig flag.

This happens if you try to run kube-rbac-proxy outside of a Pod / k8s.io environment, like your local machine. Providing the path to the kubeconfig fixes it.

@ibihim
Copy link
Collaborator

ibihim commented Feb 2, 2024

As there are no follow up questions, I will close this issue.

@ibihim ibihim closed this as completed Feb 2, 2024
@Mengxue12
Copy link

I can't say much about KubeEdge as I don't have any experience with it.

Failed to load kubeconfig happens, when it can't find a kubeconfig. It uses to look at well known places for it otherwise it needs to be specified with the --kubeconfig flag.

This happens if you try to run kube-rbac-proxy outside of a Pod / k8s.io environment, like your local machine. Providing the path to the kubeconfig fixes it.

Thank you. I had the same problem and fixed it by using --kubeconfig flag.
But I have a question, this config need the read access, but then i have this warning: Kubernetes configuration file is group-readable. This is insecure. may i ask if there's better way to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants