Sunday, April 7, 2024

Kubernetes : Metrics Server

  Metrics Server is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines.

Metrics Server collects resource metrics from Kubelets and exposes them in Kubernetes apiserver .


1. Download the metric server

wget https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.3.7/components.yaml

2. Modify the above yaml file with following bold code

 containers:

      - name: metrics-server

        image: k8s.gcr.io/metrics-server/metrics-server:v0.3.7

        imagePullPolicy: IfNotPresent

        args:

          - --cert-dir=/tmp

          - --secure-port=4443

          - --kubelet-preferred-address-types=InternalIP

          - --kubelet-insecure-tls

3. kubectl create -f components.yaml
4. kubectl top nodes
5. kubectl top pods

No comments:

Post a Comment

Different Types of Reports in Scrum - Agile

  Agile Reporting 1. Sprint Burndown At a Sprint-level, the burndown presents the  easiest way to track and report status  (the proverbial  ...