Reference https://my.oschina.net/u/228832/blog/3079150
https://www.jianshu.com/p/c8bb49edf466
The following is a record of the installation process minikube
Installation docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
Query kubectl version number
https://storage.googleapis.com/kubernetes-release/release/stable.txt
Download kubectl
wget "https://storage.googleapis.com/kubernetes-release/release/v1.15.1/bin/linux/amd64/kubectl" -O "/usr/local/bin/kubectl"
chmod +x /usr/local/bin/kubectl
Ali cloud released minikube address
https://github.com/AliyunContainerService/minikube
Under 载 minikube
curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v1.2.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
启动 minikube
minikube start --vm-driver=none --registry-mirror=https://registry.docker-cn.com
verification
kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.4 --port=8080
kubectl get node
kubectl get pod
kubectl get deployment
kubectl get ingress
kubectl get rc
kubectl get endpoints
kubectl get componentstatuses
kubectl get pods
Download image
docker pull gcr.io/google_containers/kubernetes-dashboard-amd64:v1.5.1
Start dashboard
nohup minikube dashboard &
Configuration Agent
nohup kubectl proxy --port 9009 --address='172.27.14.222' --accept-hosts='^.*'&
Access Management page
Published Application
kubectl run first-deployment --image=katacoda/docker-http-server --port=80
Publishing Service
kubectl expose deployment/tomcat --type=NodePort --port 8080
Expansion
kubectl scale deployments/docker-demo --replicas=3
Get url
minikube service tomcat --url
http://172.27.14.222:30590