Questions tagged [metrics-server]
58 questions
1
vote
1 answer
Can't get metrics on one particular k8s node
Today I have rebooted one of my k8s worker-nodes. Now can't get metrics of any pod started on this node. kubectl top nodes works ok.
$ kubectl top pods
W0413 03:16:04.917900 596110 top_pod.go:266] Metrics not available for pod…

Kirill Bugaev
- 370
- 3
- 13
0
votes
1 answer
Error: "watch is not supported on resources of kind \"nodes.metrics.k8s.io\""
I am running metrics server ( k8s.gcr.io/metrics-server/metrics-server:v0.6.2) in my EKS cluster (V 1.24) and I am seeing this message showing up 100's of times in a trace of the system:
{
"kind": "Status",
"apiVersion": "v1",
"metadata":…

Cloudlady911
- 13
- 5
0
votes
0 answers
Why is PromQL rate() returning one value?
I'm trying to calculate the MIN/MAX/AVG of the CPU usage of a pod using the rate function, but rate() is only returning a single value.
Here is the command to get the CPU usage in seconds and the values from the response of the…

mberge
- 57
- 5
0
votes
0 answers
How to query API server metrics using PromQL?
I need two metrics from the K8s API server:
The total number of requests
The times for each request
So far I've tried using these two commands:
curl -s -G "http://10.192.248.10:30000/api/v1/query" --data-urlencode…

mberge
- 57
- 5
0
votes
1 answer
How to get CPU usage at a specific point in time with PromQL
I currently have these three PromQL queries:
CPU Sum:
curl -s -G "http://10.192.248.10:30000/api/v1/query" --data-urlencode "query=sum_over_time(container_cpu_usage_seconds_total{pod='f5ingress-f5ingress-55ff78b955-vqxch',…

mberge
- 57
- 5
0
votes
0 answers
Curl K8s metrics server using start and end time
This is a branch off of my previous post:
How to get metrics from Kubernetes Metrics-server with a specific window parameter
The answer did help me get results from my query to Prometheus. But Prometheus (correct me if I'm wrong) is unable to query…

mberge
- 57
- 5
0
votes
0 answers
Steps to enable metrics server on Windows node for Kubernetes HPA
Can someone tell me the steps to configure metrics server for windows node in kubernetes. I wanted to incorporate HPA for my windows node deployment.
I was looking for various alternatives and got to know that metrics server has windows support for…
0
votes
0 answers
How to get metrics from Kubernetes Metrics-server with a specific window parameter
I need to get the following metrics from the CLI in Kubernetes:
(MIN, MAX, AVG) of (CPU/MEMORY) for the API server within a specific window of time
This is for measuring the performance of the API server. I have a script which will make K8s API…

mberge
- 57
- 5
0
votes
0 answers
kubectl top nodes OK with only controlers
I try to use metrics-servers with TLS secure mode
Firstable, kubectl top nodes gave me that error "Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io)"
After adding…

Mariedu45
- 1
- 1
0
votes
0 answers
Metrics not available when use istio-injection
I’m using metrics-server v0.6.3 in k8s v1.21.6, and istio 1.14.
If istio-injection to pod, error: Metrics not available for pod.
if not injection, metrics server running normally with pod.
Any one had this issue ? Please, help me fix this.
I think…
0
votes
0 answers
Kubernetes Metrics Server is repeatedly crashing
Can anyone point me in a direction on how to debug the following metrics-server crash? metrics-server is repeatedly crashing.
Metrics Server: 0.6.2
OS: CentOS 8 Stream
K8S: 1.25
CRI: CRI-O / crun
CNI: Cilium
Install: Flux2 / Metrics Server Helm…
0
votes
0 answers
EKS unable to detect nodegroup status
I've been using an EKS cluster with success for sometime. today we were going through and cleaning up stacks in cloud formation and I believe we may have deleted something important. Now the status of all the nodes in the EKS cluster is "Unknown"…

LakeMichigan
- 677
- 1
- 7
- 12
0
votes
0 answers
update manifest of a kubernetes object
I have a k8s cluster and I have to update metrics-server (in the kube-system) namespace. I've tried to:
kubectl apply -n kube-system -f my-updated-metrics-server.yaml
and
kubectl replace -n kube-system -f my-updated-metrics-server.yaml
without…

Kasper
- 685
- 2
- 11
- 30
0
votes
2 answers
Kubernetes - Horizontal Pod Scaler error, target "unknown". Message "no recommendation"
I have a working 1.23.9 kubernetes cluster hosted on Google Kubernetes Engine with multi-cluster services enabled, one cluster hosted in us and another in eu. I have multiple deployment apps and hpa configured for each through YAML. Out of 7…

Shreyas S
- 11
- 3
0
votes
0 answers
metrics-server show unknown on one node
It just happen on almalinux 9.0 server which I add into cluster today.
k8s version is 1.19.16
NAME CPU(cores) CPU% MEMORY(bytes) MEMORY%
k8s-dev-node1 110m 11% 2601Mi 104%
k8s-dev-node8 …

Andy Young
- 1
- 2