gpt4 book ai didi

kubernetes - 创建简单 minikube 时出错 : `Error updating cluster: generating kubeadm cfg: parsing kubernetes version`

转载 作者:行者123 更新时间:2023-12-02 11:35:41 26 4
gpt4 key购买 nike

我安装了 Homebrew kubernetes-cli 1.12.0 和 minikube 0.30.0:

~ ls -l $(which kubectl)
/usr/local/bin/kubectl -> ../Cellar/kubernetes-cli/1.12.0/bin/kubectl

~ ls -l $(which minikube)
/usr/local/bin/minikube -> /usr/local/Caskroom/minikube/0.30.0/minikube-darwin-amd64


~ minikube delete
Deleting local Kubernetes cluster...
Machine deleted.
~ rm -rf ~/.kube ~/.minikube

~ minikube start --memory 8000 --kubernetes-version 1.12.0
Starting local Kubernetes 1.12.0 cluster...
Starting VM...
Downloading Minikube ISO
170.78 MB / 170.78 MB [============================================] 100.00% 0s
Getting VM IP address...
Moving files into cluster...
E1022 10:08:41.271328 44100 start.go:254] Error updating cluster: generating kubeadm cfg: parsing kubernetes version: parsing kubernetes version: strconv.ParseUint: parsing "": invalid syntax
================================================================================
An error has occurred. Would you like to opt in to sending anonymized crash
information to minikube to help prevent future errors?
To opt out of these messages, run the command:
minikube config set WantReportErrorPrompt false
================================================================================

最佳答案

parsing kubernetes version: strconv.ParseUint: parsing "": invalid syntax

尝试使用不同的版本表示法。这是 Kubernetes documentation 中的示例:

minikube start --kubernetes-version v1.7.3

关于kubernetes - 创建简单 minikube 时出错 : `Error updating cluster: generating kubeadm cfg: parsing kubernetes version` ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52932605/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com