sh 在Ubuntu上安装Minikube,Kubectl和Virtualbox Posted 2021-05-07
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在Ubuntu上安装Minikube,Kubectl和Virtualbox相关的知识,希望对你有一定的参考价值。
#Installing VirtualBox
echo "Installing VirtualBox........................"
sudo apt-get install virtualbox
#Installing kubectl https://kubernetes.io/docs/getting-started-guides/kubectl/
echo "Installing kubectl..........................."
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.4/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv kubectl /usr/local/bin/kubectl
#Installing minikube https://github.com/kubernetes/minikube/releases
echo "Installing minikube.........................."
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.15.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
minikube start
kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080
kubectl expose deployment hello-minikube --type=NodePort
kubectl get pod
sleep 30
kubectl get pod
curl $(minikube service hello-minikube --url)
sleep 60
minikube stop
以上是关于sh 在Ubuntu上安装Minikube,Kubectl和Virtualbox的主要内容,如果未能解决你的问题,请参考以下文章
在ubuntu上安装minikube
在ubuntu上安装minikube
在Ubuntu20.04上安装Kubernetes-Kubeadm和Minikube
在Ubuntu20.04上安装Kubernetes-Kubeadm和Minikube
sh MacOS minikube国内源安装
k8s学习——minikube与kubernetes安装与启动