kubernetes kubelet和apriserver停止与minikube

ebdffaop  于 12个月前  发布在  Kubernetes
关注(0)|答案(5)|浏览(172)

我是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


有人能帮忙吗?先谢了

jdzmm42g

jdzmm42g1#

请按以下顺序尝试这些命令:
1.迷你库贝站

  1. minikube删除
  2. minikube start
    这从我工作
2fjabf4q

2fjabf4q2#

当kubeconfig配置错误时会发生这种情况。所以你需要导出kubeconfig路径,然后进行minikube启动

export KUBECONFIG=$HOME/.kube/config

echo 'export KUBECONFIG=$HOME/.kube/config' >> $HOME/.bashrc

minikube start

minikube status

字符串

uqjltbpv

uqjltbpv3#

我关闭了我的笔记本电脑,我有minikube在虚拟框运行。
当我重新启动我的笔记本电脑并在虚拟机界面中运行minikube vm时,kubelet和apiserver显示停止。
然后我不得不停下来,从谷歌启动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

t9aqgxwy

t9aqgxwy4#

我用的是ubuntu 21.10(kernel - 5.13.0-37-generic)
我已经使用minikube stop minikube start
它重新启动了我现有的minikube主机
如果我们包含minikube delete,它将停止并删除现有的minikube主机,并在执行“minikube start“时创建一个新主机。

praba@prabasden:**~$ minikube stop**
✋  Stopping node "minikube"  ...strong text
🛑  1 node stopped.
praba@prabasden:**~$ minikube start**
😄  minikube v1.25.2 on Ubuntu 21.10
✨  Using the kvm2 driver based on existing profile
👍  Starting control plane node minikube in cluster minikube
🔄  Restarting existing kvm2 VM for "minikube" ...
🐳  Preparing Kubernetes v1.23.3 on Docker 20.10.12 ...
    ▪ kubelet.housekeeping-interval=5m
🔎  Verifying Kubernetes components...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: storage-provisioner, default-storageclass
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
praba@prabasden:**~$ minikube status**
minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured

字符串

6ie5vjzr

6ie5vjzr5#

我面临着同样的问题,因为我还没有开始Minikube,但试图访问它,做了这些并解决了它,所以.
minikube start minikube status
如果你已经开始了,
minikube stop minikube delete minikube start

相关问题