ㅁ 생성
kubectl create -f deployment-definition.yml
ㅁ 조회
kubectl get deployments
Deployment와 동일한 이름으로 replicaset 생성됨
kubectl get replicaset
ㅁ 전체 조회
kubectl get all
[Practice]
ㅁ Create a new Deployment using the deployment-definition-1.yaml file located at /root/
kubectl create deployment --image=httpd:2.4-alpine httpd-frontend --dry-run=client -o yaml > httpd-deploymnet.yaml
ㅁ fix error image
kubectl desribe deployments frontend-deployment | grep -i image
ㅁ Create deployment image httpd:2.4-alpine, replica = 3
kubectl create deployment httpd-frontend --image=httpd:2.4-alpine
kubectl scale deployment --replicas=3 httpd-frontend
'CKA &. CKAD > Core Concepts' 카테고리의 다른 글
Service (0) | 2021.03.24 |
---|---|
Namespaces & Practic Test (0) | 2021.03.24 |
CKA Tip 1 (yaml) (0) | 2021.03.23 |
Practice Test - Replicaset/ReplicationController (0) | 2021.03.23 |
Practice Test - Core Concept (0) | 2021.03.22 |