CKA (Certified Kubernetes Administrator) 공부하기
06. Core Concepts - Imperative Commands
Kubectl 치트 시트
https://kubernetes.io/ko/docs/reference/kubectl/cheatsheet/
Pod 생성
k run [POD_NAME] --image=[IMAGE_NAME] --port=[PORT_NUM]
Pod 생성 (Label 지정)
k run [POD_NAME] --image=[IMAGE_NAME] -l tier=[TIER_NAME]
Service 생성
k expose po [POD_NAME] --port=[PORT_NUM] --name [SERVICE_NAME]
Deployment 생성
k create deploy [DEPLOYMENT_NAME] --image=[IMAGE_NAME]
Deployment Scale
k scale deployment/[DEPLOYMENT_NAME] --replicas=[REPLICAS_NUM]
'Docker & K8s' 카테고리의 다른 글
[K8s] CKA 공부하기 - 05. Core Concepts - Services (0) | 2020.08.09 |
---|---|
[K8s] CKA 공부하기 - 04. Core Concepts - Namespaces (0) | 2020.08.09 |
[K8s] CKA 공부하기 - 03. Core Concepts - Deployments (0) | 2020.08.09 |
[K8s] CKA 공부하기 - 02. Core Concepts - ReplicaSets (0) | 2020.08.06 |
[K8s] CKA 공부하기 - 01. Core Concepts - Pods (0) | 2020.08.02 |