我对Kubernetes完全陌生,我试图在本地机器上玩minikube。我已经在本地安装了kubectl和minikube。当我跑步
minikube start --vm-driver=virtualbox # and then
minikube status
我的输出是
E0512 23:33:45.964815 23423 status.go:233] kubeconfig endpoint: extract IP: "minikube"
does not appear in /.kube/config
m01
host: Running
kubelet: Stopped
apiserver: Stopped
kubeconfig: Misconfigured
WARNING: Your kubectl is pointing to stale minikube-vm.
To fix the kubectl context, run `minikube update-context`
当我运行minikube update-context
时,输出为
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x148ecb0]
..... and more
有人可以帮忙吗?预先感谢
答案 0 :(得分:1)
按以下顺序尝试这些命令:
这对我有用
答案 1 :(得分:0)
我关闭了在虚拟机中运行 minikube 的笔记本电脑。
当我重新启动笔记本电脑并在虚拟机界面中运行 minikube vm 时,kubelet 和 apiserver 显示已停止。
然后我不得不停止并从 cli 启动 minkube 并发布这两个服务开始出现。
以前>>>
PS C:\Users\mazumdar> minikube status
minikube
type: Control Plane
host: Running
kubelet: Stopped
apiserver: Stopped
kubeconfig: Configured
timeToStop: Nonexistent
帖子>>>>>>
PS C:\Users\mazumdar> minikube stop
* Stopping node "minikube" ...
* 1 nodes stopped.
PS C:\Users\mazumdar>
PS C:\Users\mazumdar>
PS C:\Users\mazumdar> minikube start
* minikube v1.18.1 on Microsoft Windows 10
* Using the virtualbox driver based on existing profile
* Starting control plane node minikube in cluster minikube
* Restarting existing virtualbox VM for "minikube" ...
* Preparing Kubernetes v1.20.2 on Docker 20.10.3 ...
* Verifying Kubernetes components...
- Using image gcr.io/k8s-minikube/storage-provisioner:v4
* Enabled addons: storage-provisioner, default-storageclass
* Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
PS C:\Users\mazumdar>
PS C:\Users\mazumdar>
PS C:\Users\mazumdar> minikube status
minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
timeToStop: Nonexistent