命令:minikube start 后出现问题
😄 minikube v1.24.0 on Ubuntu 16.04
✨ Automatically selected the docker driver. Other choices: none, ssh
🛑 The "docker" driver should not be used with root privileges.
💡 If you are running minikube within a VM, consider using --driver=none:
📘 https://minikube.sigs.k8s.io/docs/reference/drivers/none/
❌ Exiting due to DRV_AS_ROOT: The "docker" driver should not be used with root privileges.
使用命令minikube start --driver=none 问题
😄 minikube v1.24.0 on Ubuntu 16.04
✨ Using the none driver based on user configuration
❌ Exiting due to GUEST_MISSING_CONNTRACK: Sorry, Kubernetes 1.22.3 requires conntrack to be installed in root's path
安装sudo apt-get install -y conntrack 工具
继续 sudo -E minikube start --driver=none
minikube安装成功
安装起来之后发现coredns pod 一直起不来:报错
root@ubuntu:~# k logs coredns-78fcd69978-rvzft -n kube-system
.:53
[INFO] plugin/reload: Running configuration MD5 = 18bc9b0eddacfe7401a5dfa71defe13e
CoreDNS-1.8.4
linux/amd64, go1.16.4, 053c4d5
[FATAL] plugin/loop: Loop (127.0.0.1:45380 -> :53) detected for zone ".", see https://coredns.io/plugins/loop#troubleshooting. Query: "HINFO 7996258174646848111.1720603345531758106."
解决方法:
kubectl edit cm coredns -n kube-system 查询到/etc/resolv.conf,把里面的nameserver 127.0.0.1
改成114.114.114.114
然后
systemctl daemon-reload
systemctl restart kubelet