-
Notifications
You must be signed in to change notification settings - Fork 345
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
kamel install: cannot find k8s-certificates #2702
Comments
This looks ok at first glance. The certificate should be loaded relative to the kubeconfig file path. Could you double check the Also, one thing to try would be to change the relative path with the corresponding absolute path, by edition the kubeconfig file directly. |
Yeah, I've tried to follow your configuration and agree with @astefanutti, it seems kubectl and kamel are not using the same conf, because when they are they throw the same errors:
|
The second part of your answer was the solution to my problem. I edited the config file at /Users/myuser/.kube/config and changed the relative path to the absolute one. I don't know why it can't find the relative path, even though the config file is at the same folder-level as the certs directory. |
Error
Installing camel-k on a minikube cluster worked completely fine. But on a real cluster (OnPrem) using the
kamel intsall
command gives me this error:Error: cannot get current namespace: invalid configuration: unable to read certificate-authority certs/k8s-stage/k8s-ca.crt for k8s-stage due to open certs/k8s-stage/k8s-ca.crt: no such file or directory
Failed solutions
I checked my local certs. The k8s-ca.crt is present. I redownloaded it from the server which hosts the kubernetes cluster:
curl --create-dirs -s http://KUBERNETES-SERVER.com/ca.pem -o ${HOME}/.kube/certs/k8s-stage/k8s-ca.crt
Afterwards, I reconfigured kubectl to use the set certificate and the server
And still I get the error.
As I understood it, I need to give my kubectl client the certificate which is needed to interact with the kubernetes cluster. Strange enough, I can still interact with it and only
kamel
commands give me this error. I can still for instance list pods in the namespace.Any ideas? Is there something I do not understand correctly?
The text was updated successfully, but these errors were encountered: