ㅁ A pod named "rabbit" is deployed. Identify the CPU requirements set on the Pod in the current(Default) namespace
kubectl get pod rabbit -o yaml > rabbit-pod.yaml
vi rabbit-pod.yaml
or
kubectl describe pod rabbit
ㅁ Delete the rabbit Pod
kubectl delete pod rabbit
ㅁ Inspect the pod elephant and identify the status
kubectl describe pod elephant
The status 'OOMKilled' indicates that the pod ran out of memory. Identify the memory limit set on the POD.
ㅁ The elephant runs a process that consume 15Mi of memory. Increase the limit of the elephatn pod to 20Mi.
Delete and recreate the pod if required. Do not modify anything other thant the required fields
kubectl get pod elephant -o yaml > elephant-pod.yaml
vi elephant-pod.yaml
[change memory limit] in elephant-pod.yaml
kubectl apply -f elephant-pod.yaml
kubectl get pod elephant
'CKA &. CKAD > Scheduling' 카테고리의 다른 글
Practice Test - Static Pods (0) | 2021.03.26 |
---|---|
Practice Test - Daemon Sets (0) | 2021.03.26 |
PODs 와 Deployments를 편집하기위한 Quick note (0) | 2021.03.26 |
Resource Limits (0) | 2021.03.26 |
Practice Test - Node Selectors/Affinity (0) | 2021.03.26 |