代码之家  ›  专栏  ›  技术社区  ›  jpsstack

在macOS上重新安装后kubernetes超时

  •  0
  • jpsstack  · 技术社区  · 6 年前

    https://kubernetes.io/docs/tasks/tools/install-kubectl/

    brew install kubernetes-cli
    

    kubectl和Minikube早就安装好了,所以我期待着更新。现在kubectl版本和kubernetes集群信息超时。

    pa-demo jps$ kubectl version
    Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-08T16:31:10Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"darwin/amd64"}
    Unable to connect to the server: dial tcp 192.168.99.100:8443: i/o timeout
    

    当我再次尝试安装kubernetes cli时,我得到:

    Updating Homebrew...
    ==> Auto-updated Homebrew!
    Updated 2 taps (homebrew/core, homebrew/cask).
    ==> New Formulae
    topgrade
    ==> Updated Formulae
    bison ✔            azure-cli          bwfmetaedit        erlang@20          ghostscript        jfrog-cli-go       ldc                p11-kit            smlnj              youtube-dl
    sphinx-doc ✔       babel              crystal            fauna-shell        helmfile           juju               mkvtoolnix         pyside             tarsnap-gui
    alexjs             bat                doctl              fortio             influxdb           kore               nginx              re2c               thors-serializer
    
    Warning: kubernetes-cli 1.11.2 is already installed and up-to-date
    To reinstall 1.11.2, run `brew reinstall kubernetes-cli`
    
    1 回复  |  直到 6 年前
        1
  •  0
  •   Grant David Bachman    6 年前

    minikube start 在你的机器上启动集群。这还将kubeconfig文件配置为指向它构建的集群。