1.We have deployed a few PODs running workloads. Inspect them.
Wait for the pods to be ready before proceeding to the next question.
# k get pods
2.Let us deploy metrics-server to monitor the PODs and Nodes. Pull the git repository for the deployment files.
Run: git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git
3.Deploy the metrics-server by creating all the components downloaded.
Run the kubectl create -f . command from within the downloaded repository.
# cd kubernetes-metrics-server
# ls
# k create -f .
4.It takes a few minutes for the metrics server to start gathering data.
Run the kubectl top node command and wait for a valid output.
# k top node
5. Identify the node that consumes the most CPU.
: 질문은 가장 많이 사용되고 있는 cpu를 의미한다.
A) controlplane
6.Identify the node that consumes the most Memory.
A) controlplane
7. Identify the POD that consumes the most Memory.
# k top pod
A) rabbit
8.Identify the POD that consumes the least CPU.
A)lion
'cloud > k8s(문제풀이)' 카테고리의 다른 글
[cka]kodekloud-rolling update and rollbacks (0) | 2022.06.15 |
---|---|
[cka]kodekloud-Managing Application Logs (0) | 2022.06.13 |
[cka]kodekloud-Multiple Schedulers (0) | 2022.06.13 |
[cka]kodekloud-static pods (0) | 2022.06.13 |
[cka]kodekloud-DaemonSets (0) | 2022.06.09 |