最精簡的K8S執行環境 - MiniKube

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

最精簡的K8S執行環境 - MiniKube

文章 yehlu »

代碼: 選擇全部

brew cask install minikube

minikube version
minikube get-k8s-versions
minikube start
minikube dashboard
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

ubuntu

文章 yehlu »

代碼: 選擇全部

curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.8.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

minikube version
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
kubectl delete service hello-minikube
kubectl delete deployment hello-minikube
minikube stop
回覆文章

回到「Docker」