不想多说什么,昨天看了许多博客关于安装MiniKube都是失败告终,早上看了看官网,一下子就安装成功了,所以说还是需要多看看官网,毕竟是人家做出来的东西。
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
yum install conntrack
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
echo "1" >/proc/sys/net/bridge/bridge-nf-call-iptables
minikube start --driver=none --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
照着步骤试试看能不能成功吧,要是成功了记得存储一下快照
创建一个用户,获得token,以供Java Api使用kubectl create serviceaccount admin1 -n kube-system
kubectl create clusterrolebinding admin1 --clusterrole=cluster-admin --serviceaccount=kube-system:admin1
获取token
kubectl describe secrets -n kube-system $(kubectl -n kube-system get secret | awk '/admin1/{print }')
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)