k9s icon indicating copy to clipboard operation
k9s copied to clipboard

Support self-signed/untrusted SSL certificates

Open rucek opened this issue 5 years ago • 2 comments




Is your feature request related to a problem? Please describe. My K8S cluster uses a self-signed SSL certificate and K9S therefore fails to connect to the cluster.

Describe the solution you'd like I'd like to have a flag like --unsecure/--unsafe-ssl/whatever to force K9S to accept a self-signed certificate.

Describe alternatives you've considered I wasn't able to find any workarounds.

Additional context The logs when trying to connect to the cluster say that:

9:05AM ERR K9s can't connect to cluster error="Get \"https://k8s.example.com/version?timeout=5s\": dial tcp: lookup k8s.example.com on 192.168.0.1:53: no such host"

rucek avatar Nov 04 '20 08:11 rucek

@rucek Thank you for this issue! How are you connecting to your cluster via kubectl using your self-signed certs? Looking at this error it seems to me that the host k8s.example.com is not resolving vs indicating a cert issue?

derailed avatar Nov 10 '20 15:11 derailed

@rucek hi! Can we close your issue?

slimus avatar Jul 01 '22 20:07 slimus