티스토리 뷰

Architecture/k8s

[CKAD] Pods

GOD동하 2021. 3. 22. 11:33

Q. Create a new pod with the NGINX image

 

A. kubectl run nginx --image=nginx

 

결과

 

 

 

Q. How many pods are created now?

 

A. kubectl get pods

 

결과

 

Q. What is the image used to create the new pods?

 

A. kubectl get pods -o wide

 

 

A. kubectl describe pod newpods

 

 

 

Q. Which nodes are these pods placed on?

 

A. kubectl describe pod newpods

 

 

 

Q. What images are used in the new 'webapp' pod?

 

A. kubectl describe pod webapp

 

 

Q. What is the state of the container 'agentx' in the pod 'webapp'?

위 정보로 찾으면 됨

 

 

Q. Delete the 'webapp' Pod.

 

A. kubectl delete pod webapp

 

 

Q. Create a new pod with the name 'redis' and with the image 'redis123'

 

A. kubectl run redis --image=redis123

 

 

Q. Now fix the image on the pod to 'redis'

 

A. kubectl edit pod redis

A. kubectl apply -f ~.yaml

'Architecture > k8s' 카테고리의 다른 글

[Helm] 로컬 환경 Helm 테스트 구성  (0) 2021.03.24
[CKAD] ReplicaSets  (0) 2021.03.22
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함