Skip to content

Latest commit

 

History

History

metrics-server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

1. Kubernetes Metrics Server

Metrics Server collects resource metrics from Kubelets and exposes them in Kubernetes apiserver through Metrics API for use by Horizontal Pod Autoscaler and Vertical Pod Autoscaler

If you are running Minikube, run the following command to enable metrics-server.

$ minikube addons enable metrics-server
  • Install Metrics Server

    NOTE: This installation only required in local setup, if you using GKE, EKS cluster you do not need to install following.

    $ kubectl apply -f metrics-server-components-0.3.6.yaml
    
    Output:
    clusterrole.rbac.authorization.k8s.io/system:aggregated-metrics-reader created
    clusterrolebinding.rbac.authorization.k8s.io/metrics-server:system:auth-delegator created
    rolebinding.rbac.authorization.k8s.io/metrics-server-auth-reader created
    apiservice.apiregistration.k8s.io/v1beta1.metrics.k8s.io created
    serviceaccount/metrics-server created
    deployment.apps/metrics-server created
    service/metrics-server created
    clusterrole.rbac.authorization.k8s.io/system:metrics-server created
    clusterrolebinding.rbac.authorization.k8s.io/system:metrics-server created