Questions tagged [metrics-server]

58 questions
2
votes
1 answer

GKE metrics-server generates error - flag.Parse: E0907

Created new cluster in GKE and see in logs error: "ERROR: logging before flag.Parse: E0907 16:33:58.813216 1 nanny_lib.go:128] Get https://10.0.0.1:443/api/v1/nodes?resourceVersion=0: http2: no cached connection was available " { …
2
votes
3 answers

x509: certificate signed by unknown authority metrics-server

I am new to kubernetes and I finally realized how to launch the metrics-server as documented kubernetes-sigs/metrics-server. In case that someone else wonders you need to deploy on Master node and also have minimum one worker in the cluster. So I…
Thanos
  • 1,618
  • 4
  • 28
  • 49
2
votes
0 answers

Metrics server fails to pull metrics from Windows workers

I have a Kubernetes cluster with 2 Windows worker nodes. When I run kubectl top nodes the Windows nodes report as unknown. I did some investigating and I am seeing errors in the logs. Logs from metric server E0529 12:04:50.809303 1…
oliwa
  • 1,834
  • 1
  • 16
  • 19
1
vote
2 answers

Understand the current memory utilization for my pod in Kubernetes

I want to understand what is the current memory usage for my pod running on EKS Cluster. I have Metrics server and prometheus installed. When I run a "kubectl top pods", I get a memory usage of 2.5 GB sh-4.2$ kubectl top pods…
Gaurav Parashar
  • 1,347
  • 2
  • 19
  • 21
1
vote
0 answers

Couldn't get resource list for metrics.k8s.io/v1beta1: the server is currently unable to handle the request - Microk8s

Previously I had Microk8s cluster which was on Kubernetes 1.24 version. Recently I have upgraded the Kubernetes version to 1.26. And also, I'm using Metrics-server through Microk8s addons. In the earlier K8s version i didn't get the below error but…
1
vote
1 answer

How to calculate the MIN/MAX/AVG of CPU usage in PromQL

I created a script to test and get the CPU usage in thousands (ex. 50m=50/1000 CPU core utilization) using rate() and then get the sum to compare the two results: window_sec=120 curl -s -G "http://master.com:30355/api/v1/query_range" \ …
mberge
  • 57
  • 5
1
vote
1 answer

Kubernetes Metrics Server no metrics known for some Pods

I have the following deployments one of Django api and the other of celery, when I run the command to get the resource consumption of the pods, it only return those of celery and not those of the API. What are potential reasons for this? given that…
Kaizendae
  • 853
  • 11
  • 24
1
vote
1 answer

Why is my minikube metrics-server addon not reporting pod metrics (docker 20.x)?

My pod metrics stopped working on a local minikube deployment. It appears similar to an issue reported a while back, but I don't see the same error messages in the logs. The node statistics are working fine: % kubectl top node …
RndmSymbl
  • 511
  • 6
  • 24
1
vote
2 answers

Kubernetes metrics-server not working with Linkerd

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…
Raven
  • 105
  • 8
1
vote
2 answers

How to obtain real time kubernetes pod metrics with a poll interval of 2secs?

My use case is to make a kubernetes pod's metrics be available for consumption every 2 secs. It is required to poll the pod at this interval to maintain a healthy control plane (determine pods that are possibly choked and avoid routing traffic to…
1
vote
2 answers

Is k8s.gcr.io/metrics-server-arm64:v0.3.6 the latest image available for arm64 deployments?

Checking the latest image used in the metrics-server Github repo, the tag used is v0.5.0, for arm64 I would usually add arm64 to the image name and pull it. But the image doesn't exist and doing an inspect to the base image shows that its arch is…
1
vote
0 answers

Problem with metrics-server and hpa delays

I have an app with 12 containers in one pod, on gke.. I'm trying to improve my app using hpa and i'm stressing it with jmeter!! The problem is that because of delays(metrics-server and hpa delay) hpa creates new pods but with a delay so doesn't help…
alex
  • 343
  • 2
  • 9
1
vote
1 answer

Kubernetes Access metrics server API externally

I am trying to access the metrics server for a k8s cluster without the use of kubectl proxy. After finding the tutorial at https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/#without-kubectl-proxy, I've run into an issue. When…
danthegoodman
  • 501
  • 4
  • 10
1
vote
1 answer

Unable to fetch cpu pod metrics, k8s- containerd - containerd-shim-runsc-v1 - gvisor

I moved from gvisor-containerd-shim (Shim V1) to containerd-shim-runsc-v1 (Shim V2). The metrics server and the Horizontal Pod Autoscaler used to work just fine in the case of gvisor-containerd-shim. But now, with containerd-shim-runsc-v1, I keep…
virt
  • 11
  • 2
1
vote
1 answer

metrics-server of GCP GKE Kubernetes is not able to fetch pod metrics

I run a small Kubernetes cluster on the managed Google Kubernetes Engine (GKE) service. I didn't to any further changes, except from deploying three simple deployments. So I assumed that everything, including metrics, works out of the box.…