Skip to content

Latest commit

 

History

History
72 lines (53 loc) · 1.37 KB

03-Practice-Test-Monitor-Cluster-Components.md

File metadata and controls

72 lines (53 loc) · 1.37 KB

Practice Test - Monitor Cluster Components

Solutions to practice test - monitor cluster components

  • We have deployed a few PODs running workloads. Inspect it.

    $ kubectl get pods
    
  • Let us deploy metrics-server to monitor the PODs and Nodes. Pull the git repository for the deployment files.

    $ git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git
    
  • Run the 'kubectl create -f .' command from within the downloaded repository.

    ``` $ cd kubernetes-metrics-server $ kubectl create -f . ```
  • Run the 'kubectl top node' command and wait for a valid output.

    ``` $ kubectl top node ```
  • Run the 'kubectl top node' command

    ``` $ kubectl top node ```
  • Run the 'kubectl top node' command

    ``` $ kubectl top node ```
  • Run the 'kubectl top pod' command

    ``` $ kubectl top pod ```
  • Run the 'kubectl top pod' command

    ``` $ kubectl top pod ```