How to add metric-server inside an helm-couchdb application

4/20/2020

When trying to do HorizontalPodAutoscaling I'm getting (failed to get memory utilization: unable to get metrics for resource memory: no metrics returned from resource metrics API) how can solve this problem.

-- Abhishek
hpa
kubernetes
kubernetes-helm

1 Answer

4/23/2020

As far as I understand before using hpa you have to install metrics-server. More in below docs and links.

Before you begin

This example requires a running Kubernetes cluster and kubectl, version 1.2 or later. metrics-server monitoring needs to be deployed in the cluster to provide metrics via the resource metrics API, as Horizontal Pod Autoscaler uses this API to collect metrics. The instructions for deploying this are on the GitHub repository of metrics-server, if you followed getting started on GCE guide, metrics-server monitoring will be turned-on by default.

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.

Additional links:

-- jt97
Source: StackOverflow