Difference between revisions of "Kubectl: pods"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 23: | Line 23: | ||
minikube addons enable metrics-server | minikube addons enable metrics-server | ||
kubectl get pod,svc -n kube-system | kubectl get pod,svc -n kube-system | ||
+ | minikube dashboard | ||
+ | |||
minikube addons disable metrics-server | minikube addons disable metrics-server |
Revision as of 11:22, 17 October 2020
Sumber: https://kubernetes.io/docs/tutorials/hello-minikube/
Create Deployment
kubectl create deployment hello-node --image=k8s.gcr.io/echoserver:1.4 kubectl get deployments kubectl get pods kubectl get events kubectl config view
Create Service
kubectl expose deployment hello-node --type=LoadBalancer --port=8080 kubectl get services minikube service hello-node
Enable addons
minikube addons list minikube addons enable metrics-server kubectl get pod,svc -n kube-system minikube dashboard
minikube addons disable metrics-server
Clear
kubectl delete service hello-node kubectl delete deployment hello-node minikube stop minikube delete
Etc
kubectl get pods
kubectl describe pod hello-minikube-6ddfcc9757-mljlz kubectl describe pod balanced-5744b548b4-k9mch