-
Notifications
You must be signed in to change notification settings - Fork 596
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
[Bug]: --kubeconfig
doesn't work
#604
Closed
3 of 4 tasks
Comments
jianzhangbjz
added a commit
to jianzhangbjz/k8sgpt
that referenced
this issue
Aug 15, 2023
If user specify `--kubeconfig` when running k8sgpt, it should use the kubeconfig file to login the corresponding cluster instead of getting auth info via SA. Closes k8sgpt-ai#604 Signed-off-by: Jian Zhang <jiazha@redhat.com>
--kubeconfig
doesn't work when it in a cluster.--kubeconfig
doesn't work
--kubeconfig
doesn't work--kubeconfig
doesn't work
/kind bug |
AlexsJones
pushed a commit
that referenced
this issue
Aug 19, 2023
If user specify `--kubeconfig` when running k8sgpt, it should use the kubeconfig file to login the corresponding cluster instead of getting auth info via SA. Closes #604 Signed-off-by: Jian Zhang <jiazha@redhat.com>
@jianzhangbjz , I tried to reproduce. From my tests when you specify I realized that you want to connect from within a cluster to an external one and yes this is not doable atm. |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Affected Components
K8sGPT Version
k8sgpt: 0.3.7 (1bc0f42), built at: unknown
Kubernetes Version
v1.27.0
Host OS and its Version
No response
Steps to reproduce
k8sgpt --kubeconfig=/tmp/kubeconfig-3608642416 analyze -aed
Expected behaviour
It should use the
KUBECONFIG
when users export it.Actual behaviour
The cluster we export.
But, it still read the
InClusterConfig
config, not the specificKUBECONFIG
Additional Information
No response
The text was updated successfully, but these errors were encountered: