更改本地IP。我应该在哪里更新 minikube 的 IP

changed local IP. Where am I supposed to update IP for minikube

不知道为什么,我的本地IP从192.168.1.100变成了192.168.1.125

所以,当我启动 minikube 时,它​​启动良好,但是 kubectl 命令的 none 有效,它给了我:

Unable to connect to the server: dial tcp 192.168.1.100:8443: connect: no route to host

我应该在哪里更改本地计算机的 IP (ubuntu 19.04)?

minikube update-context 应该可以为您解决这个问题。

引用文档:

The update-context command retrieves the IP address of the running cluster, checks it with IP in kubeconfig, and corrects kubeconfig if incorrect

https://minikube.sigs.k8s.io/docs/reference/commands/update-context/