We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
kubent fails to start if it's not executed in ${HOME}/.kube directory:
kubent
${HOME}/.kube
kubent -x <SOME CONTEXT> --helm3 11:12AM INF >>> Kube No Trouble `kubent` <<< 11:12AM INF version 0.7.0 (git sha d1bb4e5fd6550b533b2013671aa8419d923ee042) 11:12AM INF Initializing collectors and retrieving data 11:12AM ERR Failed to initialize collector: <nil> error="failed to assemble client config: invalid configuration: unable to read certificate-authority certs/<SOME CLUSTER>/k8s-ca.crt for <SOME CLUSTER> due to open certs/<SOME CLUSTER>/k8s-ca.crt: no such file or directory" 11:12AM ERR Failed to initialize collector: <nil> error="failed to assemble client config: invalid configuration: unable to read certificate-authority certs/<SOME CLUSTER>/k8s-ca.crt for <SOME CLUSTER> due to open certs/<SOME CLUSTER>/k8s-ca.crt: no such file or directory" 11:12AM INF Loaded ruleset name=custom.rego.tmpl 11:12AM INF Loaded ruleset name=deprecated-1-16.rego 11:12AM INF Loaded ruleset name=deprecated-1-22.rego 11:12AM INF Loaded ruleset name=deprecated-1-25.rego 11:12AM INF Loaded ruleset name=deprecated-1-26.rego 11:12AM INF Loaded ruleset name=deprecated-future.rego
I tried both a binary and a container the error is the same. Only when I change the current working directory to ${HOME}/.kube kubent works.
The text was updated successfully, but these errors were encountered:
This issue has not seen any activity in last 60 days, and has been marked as stale.
Sorry, something went wrong.
Can we see the relevant part of your .kubeconfig? I assume that perhaps the certs there are referenced as relative to ${HOME}/.kube?
.kubeconfig
... clusters: - cluster: certificate-authority: certs/<REDACTED>/k8s-ca.crt server: https://<REDACTED> name: <REDACTED> ...
Good catch, but anyway, this is something not obvious.
Thanks for confirming this.
I did check how kubectl behaves, and it seems it will resolve paths relative to the kubeconfig location. We should probably try to do the same.
kubectl
kubeconfig
femrtnz
No branches or pull requests
kubent
fails to start if it's not executed in${HOME}/.kube
directory:I tried both a binary and a container the error is the same. Only when I change the current working directory to
${HOME}/.kube
kubent
works.The text was updated successfully, but these errors were encountered: