https://rancher.com/ logo
Title
w

white-forest-3323

05/20/2023, 7:33 AM
Hi, I get this error when rancher-desktop launch kubernetes and after several minutes I'm unable to use the cluster:
2023-05-20T07:25:22.373Z: Error starting lima: Error: self signed certificate in certificate chain
    at TLSSocket.onConnectSecure (node:_tls_wrap:1532:34)
    at TLSSocket.emit (node:events:527:28)
    at TLSSocket._finishInit (node:_tls_wrap:946:8)
    at ssl.onhandshakedone (node:_tls_wrap:727:12) {
  code: 'SELF_SIGNED_CERT_IN_CHAIN'
}
I tried factory reset / kubernetes reset with no luck. I assume it is an issue with something on my host but no idea how to solve it. Any suggestion?
after the error when I try to connect to the cluster I get
$ kubectl get all
I0520 11:25:36.128793   51838 versioner.go:58] Get "<https://127.0.0.1:6443/version?timeout=5s>": x509: certificate signed by unknown authority
E0520 11:25:36.229884   51838 memcache.go:265] couldn't get current server API group list: Get "<https://127.0.0.1:6443/api?timeout=32s>": x509: certificate signed by unknown authority
E0520 11:25:36.230984   51838 memcache.go:265] couldn't get current server API group list: Get "<https://127.0.0.1:6443/api?timeout=32s>": x509: certificate signed by unknown authority
E0520 11:25:36.231830   51838 memcache.go:265] couldn't get current server API group list: Get "<https://127.0.0.1:6443/api?timeout=32s>": x509: certificate signed by unknown authority
E0520 11:25:36.233921   51838 memcache.go:265] couldn't get current server API group list: Get "<https://127.0.0.1:6443/api?timeout=32s>": x509: certificate signed by unknown authority
E0520 11:25:36.234898   51838 memcache.go:265] couldn't get current server API group list: Get "<https://127.0.0.1:6443/api?timeout=32s>": x509: certificate signed by unknown authority
Unable to connect to the server: x509: certificate signed by unknown authority
and
$ curl -k <https://127.0.0.1:6443/version?timeout=5s>
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "Unauthorized",
  "reason": "Unauthorized",
  "code": 401
}
w

witty-jelly-95845

05/22/2023, 8:17 PM
-> #rancher-desktop
­čĹŹ 1