How to Deploy a Metrics Server in Kubernetes
If you would like to deploy a Metrics Server in Kubernetes, then you first need to create a namespace for it to live it, followed by installing the actual metrics server.
Step 1 – Install the Metrics Server
Using kubectl
|
|
Using helm
Step 2 – Get the Metrics Server Status
If you used kubectl
above, then you should be able to run:
|
|
Otherwise with helm
, run:
|
|
Step 3 – Verifying the Metrics Server Setup
If you get the following output, then it just means the server is not ready yet, wait a moment longer:
When the Metrics Server is ready, you will get a response as follows:
Step 4 – A tip to be alerted when ready
You can always watch
the above command instead of running the same command over and over above, while waiting for the server to become available:
|
|