https://www.youtube.com/watch?v=Q6g7w7Cmwlknode
Minikube 來學習k8s https://github.com/kubernetes/minikubenginx
Master ->管理 Minion -> pod爲單位git
minikube start
github
minikube ssh
web
host 安裝 kubectldocker
kubectl get node
kubectl cluster-info
bash
web界面 ip:30000app
docker images
ssh
github.com/acinwinstack/k8s-concept-demo學習
kubectl apply -f service.yml kubectl get svc kubectl get po kubectl get deploy kubectl describe po <name> kubectl logs <name kubectl exec -it <name bash kubectl expose pod nginx --name ng kubectl expose pod nginx --name nginx-svc-2 --type NodePort --port 80 --target-port 80
NodePort service type, 會用30000+ 端口跟container 關聯