MicroK8s 安装中的问题记录

152 阅读1分钟
  1. 卡在 microk8s status --wait-ready,通过搜索MicroK8s的文档,找到如下内容

图片.png 解决方法如下:

# create a directory with the registry name
sudo mkdir -p /var/snap/microk8s/current/args/certs.d/registry.k8s.io

# create the hosts.toml file pointing to the mirror
echo '
server = "registry.k8s.io"

[host."https://registry.aliyuncs.com/v2/google_containers"]
  capabilities = ["pull", "resolve"]
  override_path = true
' | sudo tee -a /var/snap/microk8s/current/args/certs.d/registry.k8s.io/hosts.toml

分别输入以上两条命令,应该就可以了。

  1. The host name (xxx) of the joining node does not resolve to the IP “xxxx“

加入不了集群,我改动过hosts,通过修改hosts对应的机器名为对应的ip地址,搞定。出处