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

kubeconfig flag not working #1361

Closed
astingengo opened this issue Dec 7, 2022 · 5 comments · Fixed by #1363
Closed

kubeconfig flag not working #1361

astingengo opened this issue Dec 7, 2022 · 5 comments · Fixed by #1363
Assignees

Comments

@astingengo
Copy link

astingengo commented Dec 7, 2022

version that I'm using is 4.5.4

If running kubectl-minio_4.5.4_linux_amd64 --kubeconfig <file> init it will ignore my --kubeconfig file and it will say
The connection to the server localhost:8080 was refused - did you specify the right host or port?

@pjuarezd
Copy link
Member

pjuarezd commented Dec 7, 2022

this sounds like your local kubernetes API is not available, make sure it is running in localhost:8080 and that is correctly configured in the server field of your ~.kube/config file

@astingengo
Copy link
Author

You don't folow my comment.
I'm passing --kubeconfig so I don't have a ~/.kube/config file but I don't want one that's the reason I'm using --kubeconfig

@dvaldivia
Copy link
Collaborator

can you try renaming kubectl-minio_4.5.4_linux_amd64 to kubectl-minio putting it in your PATH and then doing kubectl minio --kubeconfig and let us know if that solved your issue?

@astingengo
Copy link
Author

I already tried that hopping it will do the trick but the result was same

@astingengo
Copy link
Author

I think it is ignored on tenant commands as well

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

Successfully merging a pull request may close this issue.

3 participants