k8s官方文档:https://kubernetes.io/docs/tasks/tools/install-minikube/

安装教程:https://www.youtube.com/watch?v=fXE1Gu71XNM

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ brew cask install docker

$ brew cask install minikube

$ minikube start

$ kubectl get pods

$ kubectl get all

$ ls -lrt

minikube status

minikube stop

运行spring boot demo教程:https://github.com/trisberg/s1p2017-boot-k8s/blob/master/demo-hello.adoc

eval $(minikube docker-env)

打包命令:
./mvnw clean package

kubectl run hello-k8s –image=registry.cn-hangzhou.aliyuncs.com/spring-microservice-exam/hello-k8s –port 8080 –image-pull-policy=IfNotPresent

kubectl get pods

kubectl get deployment

minikube dashboard

视频教程:https://www.youtube.com/watch?v=W6J0uBjdSY4
https://www.youtube.com/watch?v=SOkN0D9vhAY