Difference between revisions of "Kubectl: pods"

From OnnoWiki
Jump to navigation Jump to search
(Created page with " kubectl get pods kubectl describe pod hello-minikube-6ddfcc9757-mljlz kubectl describe pod balanced-5744b548b4-k9mch")
 
Line 1: Line 1:
 +
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
 +
 +
 +
 +
==Etc==
  
 
  kubectl get pods
 
  kubectl get pods
Line 5: Line 26:
 
  kubectl describe pod hello-minikube-6ddfcc9757-mljlz
 
  kubectl describe pod hello-minikube-6ddfcc9757-mljlz
 
  kubectl describe pod balanced-5744b548b4-k9mch
 
  kubectl describe pod balanced-5744b548b4-k9mch
 +
 +
 +
 +
 +
==Referensi==
 +
 +
* https://kubernetes.io/docs/tutorials/hello-minikube/

Revision as of 10:41, 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


Etc

kubectl get pods


kubectl describe pod hello-minikube-6ddfcc9757-mljlz
kubectl describe pod balanced-5744b548b4-k9mch



Referensi