我尝试在Ubuntu 18虚拟机中运行示例应用程序。
我已经安装了Docker客户端和服务器版本18.06.1-ce。我已经在运行VirtualBox。
我使用下面的链接并安装kubectl 1.14:https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-linux
我还安装了Minikube v1.0.1。但是Minikube启动命令卡在了等待Pod中:apiserver和超时
harshana@-Virtual-Machine:~$ sudo minikube start
minikube v1.0.1 on linux (amd64)
Downloading Kubernetes v1.14.1 images in the background ...
⚠️ Ignoring --vm-driver=virtualbox, as the existing "minikube" VM was created using the none driver.
⚠️ To switch drivers, you may create a new VM using `minikube start -p <name> --vm-driver=virtualbox`
⚠️ Alternatively, you may delete the existing VM using `minikube delete -p minikube`
Restarting existing none VM for "minikube" ...
⌛ Waiting for SSH access ...
"minikube" IP address is xxx.xxx.x.xxx
Configuring Docker as the container runtime ...
Version of container runtime is 18.06.1-ce
⌛ Waiting for image downloads to complete ...
✨ Preparing Kubernetes environment ...
Downloading kubeadm v1.14.1
Downloading kubelet v1.14.1
Pulling images required by Kubernetes v1.14.1 ...
Relaunching Kubernetes v1.14.1 using kubeadm ...
⌛ Waiting for pods: apiserver
sudo minikube日志:
May 19 08:11:40 harshana-Virtual-Machine kubelet[10572]: E0519 08:11:40.825465 10572 kubelet.go:2244] node "minikube" not found
May 19 08:11:40 harshana-Virtual-Machine kubelet[10572]: E0519 08:11:40.895848 10572 reflector.go:126] k8s.io/kubernetes/pkg/kubelet/kubelet.go:451: Failed to list *v1.Node: Get https://localhost:8443/api/v1/nodes?fieldSelector=metadata.name%!D(MISSING)minikube&limit=500&resourceVersion=0: dial tcp 127.0.0.1:8443: connect: connection refused
答案 0 :(得分:0)
我有相同的行为,因为我使用kvm创建了第一个VM。我已按照说明操作并删除了VM。运行以下内容:
1- minikube delete -p minikube
2- minikube start