kubernetes

https://kubernetes.io/docs/tutorials/kubernetes-basics/docker

 

$minikube start get

$kubectl run kubernetes-bootcamp --image=docker.io/jocatalin/kubernetes-bootcamp:v1 --port=8080kubernetes

$kubectl get deploymentsio

 

$kubectl get podsservice

$kubectl describe podsim

$kubectl proxytutorial

 

^^^^^vi

$kubectl logs $POD_NAMEdeploy

$kubectl exec $POD_NAMElet

 

$kubectl expose deployment/kubernetes-bootcamp  --type="NodePort" --port=8080

$kubectl get services

$kubectl describe services/kubernetes-bootcamp

$kubectl delete service -l run=kubernetes-bootcamp

相關文章
相關標籤/搜索