- Take me to Practice Test
Solutions to practice test - monitor cluster components
-
We have deployed a few PODs running workloads. Inspect it.
Details
$ kubectl get pods -
Let us deploy metrics-server to monitor the PODs and Nodes. Pull the git repository for the deployment files.
Details
$ git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git -
Run the 'kubectl create -f .' command from within the downloaded repository.
Details
``` $ cd kubernetes-metrics-server $ kubectl create -f . ``` -
Run the 'kubectl top node' command and wait for a valid output.
Details
``` $ kubectl top node ``` -
Run the 'kubectl top node' command
Details
``` $ kubectl top node ``` -
Run the 'kubectl top node' command
Details
``` $ kubectl top node ``` -
Run the 'kubectl top pod' command
Details
``` $ kubectl top pod ``` -
Run the 'kubectl top pod' command
Details
``` $ kubectl top pod ```