kenu
53k
2019-06-29 22:30:18
0
1215

Kubernetes 튜토리얼 요약


OKdevTV

Kubernetes

  • Deploy a containerized application on a cluster
  • Scale the deployment
  • Update the containerized application with a new software version
  • Debug the containerized application

Tutorial

Minikube

  • minikube version
  • minikube start
  • kubectl version
  • kubectl cluster-info
  • kubectl get nodes

kubernates run

kubectl run kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1 --port=8080
kubectl get deployments

NAME                  READY   UP-TO-DATE   AVAILABLE   AGE
kubernetes-bootcamp   1/1     1            1           73s

kubectl proxy

  • kubectl proxy

  • curl http://localhost:8001/version

  • kubectl get - list resources

  • kubectl describe - show detailed information about a resource

  • kubectl logs - print the logs from a container in a pod

  • kubectl exec - execute a command on a container in a pod

Install on MacOS

ref

from: https://okdevtv.com/mib/kubernetes

1
  • 댓글 0

  • 로그인을 하시면 댓글을 등록할 수 있습니다.