尝试安装 Kubeflow 时出现 Microk8s 错误

Microk8s Error When Trying to Install Kubeflow

我盲目地按照安装文档安装 Microk8s 并使用 kubeflow 配置,但我遇到了如下错误:

https://charmed-kubeflow.io/docs/quickstart

joesan@joesan-InfinityBook-S-14-v5:~$ juju add-model kubeflow
ERROR opening API connection: starting proxy for api connection: connecting k8s proxy: Get "https://192.168.0.35:16443/api/v1/namespaces/controller-microk8s-localhost/services/controller-service": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "10.152.183.1")

看起来有些证书不匹配,但我该如何解决?

编辑:我试图移除控制器,但没有成功:

joesan@joesan-InfinityBook-S-14-v5:~$ juju kill-controller microk8s-localhost
WARNING! This command will destroy the "microk8s-localhost" controller.
This includes all machines, applications, data and other resources.

Continue? (y/N):y
Unable to open API: starting proxy for api connection: connecting k8s proxy: Get "https://192.168.0.35:16443/api/v1/namespaces/controller-microk8s-localhost/services/controller-service": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "10.152.183.1")
ERROR getting controller environ: getting environ using bootstrap config from client store: finding controller namespace with non legacy labels: Get "https://192.168.0.35:16443/api/v1/namespaces?labelSelector=model.juju.is%2Fname%3Dcontroller": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "10.152.183.1")

我在 Ubuntu 20.04 LTS 机器上。

删除

~$ .local/share/juju

对我有用。我猜以前的安装中有一些陈旧的凭据。