c-bata / kube-prompt

An interactive kubernetes client featuring auto-complete.
MIT License
1.78k stars 133 forks source link

kube-prompt fails over x509: certificate signed by unknown authority #93

Open phani-hothur opened 5 months ago

phani-hothur commented 5 months ago

Our implementation has TELEPORT installed for access control. It's installed with TLS enabled.

Post its installation, we started the local proxy using , "tsh proxy kube", this lets us access the cluster using kubectl commands..

kubectl commands works fine.

➜ ~ kubectl get ns NAME STATUS AGE my namespaces ➜ ~ kube-prompt error Get https://teleportcluster/api/v1/namespaces: x509: certificate signed by unknown authority ➜ ~

where as kube-prompt fails on above error, can someone guide why would it fail when kubectl works fine? any leads on how to fix this?

c-bata commented 5 months ago

I'm not sure, but probably the client-go version must be updated. https://github.com/c-bata/kube-prompt/blob/8547400009dcb7340f3bbd6428113aa5ccc2c7b7/go.mod#L8

azamora-zsc commented 4 days ago

Any idea about how to fix this? I'm facing the same issue...