metrics-server | efficient source of container resource metrics | Monitoring library

 by   kubernetes-sigs Go Version: metrics-server-helm-chart-3.10.0 License: Apache-2.0

kandi X-RAY | metrics-server Summary

kandi X-RAY | metrics-server Summary

metrics-server is a Go library typically used in Performance Management, Monitoring, Docker, Prometheus applications. metrics-server has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

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 through Metrics API for use by Horizontal Pod Autoscaler and Vertical Pod Autoscaler. Metrics API can also be accessed by kubectl top, making it easier to debug autoscaling pipelines. Metrics Server is not meant for non-autoscaling purposes. For example, don't use it to forward metrics to monitoring solutions, or as a source of monitoring solution metrics. In such cases please collect metrics from Kubelet /metrics/resource endpoint directly.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              metrics-server has a medium active ecosystem.
              It has 4723 star(s) with 1626 fork(s). There are 90 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 30 open issues and 597 have been closed. On average issues are closed in 120 days. There are 9 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of metrics-server is metrics-server-helm-chart-3.10.0

            kandi-Quality Quality

              metrics-server has 0 bugs and 0 code smells.

            kandi-Security Security

              metrics-server has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              metrics-server code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              metrics-server is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              metrics-server releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 7918 lines of code, 237 functions and 50 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of metrics-server
            Get all kandi verified functions for this library.

            metrics-server Key Features

            No Key Features are available at this moment for metrics-server.

            metrics-server Examples and Code Snippets

            No Code Snippets are available at this moment for metrics-server.

            Community Discussions

            QUESTION

            Getting Error: Cannot find module 'js-yaml'
            Asked 2022-Apr-11 at 07:49

            I have installed js-yaml with this command

            ...

            ANSWER

            Answered 2022-Apr-11 at 07:49

            The @types/js-yaml contains only type definitions used by TypeScript compiler to verify your code. However, it doesn't contain the actual implementation required at runtime.

            You should install npm install js-yaml --save.

            Source https://stackoverflow.com/questions/71823045

            QUESTION

            Microk8s dashboard using nginx-ingress via http not working (Error: `no matches for kind "Ingress" in version "extensions/v1beta1"`)
            Asked 2022-Apr-01 at 07:26

            I have microk8s v1.22.2 running on Ubuntu 20.04.3 LTS.

            Output from /etc/hosts:

            ...

            ANSWER

            Answered 2021-Oct-10 at 18:29
            error: unable to recognize "ingress.yaml": no matches for kind "Ingress" in version "extensions/v1beta1"
            

            Source https://stackoverflow.com/questions/69517855

            QUESTION

            Deleted kube-proxy
            Asked 2022-Mar-17 at 22:09

            I've accidently deleted kube-proxy from my k3s cluster. How can I restore it? Any object type is non-existent anymore, this command gives an empty result:

            ...

            ANSWER

            Answered 2022-Mar-17 at 22:09

            Kubernetes allows to reinstall kube-proxy, so the docs for reinstalling kube-proxy told me to launch this command:

            Source https://stackoverflow.com/questions/71471879

            QUESTION

            Kubernetes metrics-server not working with Linkerd
            Asked 2022-Mar-07 at 21:18

            I have a metrics-server and a horizontal pod autoscaler using this server, running on my cluster.
            This works perfectly fine, until i inject linkerd-proxies into the deployments of the namespace where my application is running. Running kubectl top pod in that namespace results in a error: Metrics not available for pod error. However, nothing appears in the metrics-server pod's logs.
            The metrics-server clearly works fine in other namespaces, because top works in every namespace but the meshed one.

            At first i thought it could be because the proxies' resource requests/limits weren't set, but after running the injection with them (kubectl get -n deploy -o yaml | linkerd inject - --proxy-cpu-request "10m" --proxy-cpu-limit "1" --proxy-memory-request "64Mi" --proxy-memory-limit "256Mi" | kubectl apply -f -), the issue stays the same.

            Is this a known problem, are there any possible solutions?

            PS: I have a kube-prometheus-stack running in a different namespace, and this seems to be able to scrape the pod metrics from the meshed pods just fine

            ...

            ANSWER

            Answered 2022-Mar-04 at 01:18

            I'm able to use kubectl top on pods that have linkerd injected:

            Source https://stackoverflow.com/questions/71328708

            QUESTION

            Add Kubernetes scrape target to Prometheus instance that is NOT in Kubernetes
            Asked 2022-Feb-13 at 20:24

            I run prometheus locally as http://localhost:9090/targets with

            ...

            ANSWER

            Answered 2021-Dec-28 at 08:33

            There are many agents capable of saving metrics collected in k8s to remote Prometheus server outside the cluster, example Prometheus itself now support agent mode, exporter from Opentelemetry, or using managed Prometheus etc.

            Source https://stackoverflow.com/questions/70457308

            QUESTION

            Accessing a private GKE cluster via Cloud VPN
            Asked 2022-Feb-10 at 15:52

            We have setup a GKE cluster using Terraform with private and shared networking:

            Network configuration:

            ...

            ANSWER

            Answered 2022-Feb-10 at 15:52

            QUESTION

            Getting Service Unavailable for service metrices command in EKS
            Asked 2022-Feb-07 at 13:26

            I am getting ServiceUnavailable error when I try to run kubectl top nodes or kubectl top pods command in EKS. I am running my cluster in EKS , and I am not finding any solution for this online. If any one have faced this issue in EKS please let me know how we can resolve this issue

            ...

            ANSWER

            Answered 2022-Feb-07 at 13:26

            Download the components.yaml, find and replace 4443 to 443 and do a kubectl replace -f components.yaml -n kube-system --force.

            Source https://stackoverflow.com/questions/71011376

            QUESTION

            Failed to install metrics-server on minikube
            Asked 2022-Jan-27 at 05:37

            I am trying to install metrics-server on my Kubernetes cluster. But it is not going to READY mode.

            I am was installed metrics-server in this method

            ...

            ANSWER

            Answered 2022-Jan-27 at 05:37

            Enable metrics-server addon in minikube cluster.

            Try the following commend.

            Source https://stackoverflow.com/questions/70740997

            QUESTION

            Connection refused from pod to pod via service clusterIP
            Asked 2022-Jan-16 at 15:05

            Something wrong happend with my RPi 4 cluster based on k3sup.

            Everything works as expected until yesterday when I had to reinstall master node operating system. For example, I have a redis installed on master node and then some pods on worker nodes. My pods can not connect to redis via DNS: redis-master.database.svc.cluster.local (but they do day before).

            It throws an error that can not resolve domain when I test with busybox like:

            ...

            ANSWER

            Answered 2022-Jan-16 at 15:05

            There was one more thing that was not mentioned. I'm using OpenVPN with NordVPN server list on master node, and use a privoxy for worker nodes.

            When you install and run OpenVPN before running kubernetes master, OpenVPN add rules that block kubernetes networking. So, coredns does not work and you can't reach any pod via IP as well.

            I'm using RPi 4 cluster, so for me it was good enough to just re-install master node, install kubernetes at first and then configure openvpn. Now everything is working as expected.

            It's good enough to order your system units by adding After or Before in service definition. I have VPN systemd service that looks like below:

            Source https://stackoverflow.com/questions/69461150

            QUESTION

            How to remove kubernetes pods related files from file system?
            Asked 2021-Dec-23 at 07:52

            I am new to kubernetes. So, I created few pods. Then I deleted all pods using

            kubectl delete pods --all

            But output of df -h still shows kubernetes consumed disk space.

            ...

            ANSWER

            Answered 2021-Dec-23 at 06:48

            There are mandatory data to be maintain when a cluster is running (eg. default service token). When you shutdown (eg. systemctl stop k3s) the cluster (not just delete pods) these will be released.

            Source https://stackoverflow.com/questions/70458397

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install metrics-server

            Metrics Server can be installed either directly from YAML manifest or via the official Helm chart. To install the latest Metrics Server release from the components.yaml manifest, run the following command. Installation instructions for previous releases can be found in Metrics Server releases.

            Support

            Learn how to engage with the Kubernetes community on the community page.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Monitoring Libraries

            netdata

            by netdata

            sentry

            by getsentry

            skywalking

            by apache

            osquery

            by osquery

            cat

            by dianping

            Try Top Libraries by kubernetes-sigs

            kind

            by kubernetes-sigsGo

            kustomize

            by kubernetes-sigsGo

            kubebuilder

            by kubernetes-sigsGo

            external-dns

            by kubernetes-sigsGo

            krew

            by kubernetes-sigsGo