lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.48k stars 1.46k forks source link

kubeStateMetrics Replica Increase Leads to Lens Displaying Doubled Pod Limits #7995

Open JOE-REALFORCE opened 9 months ago

JOE-REALFORCE commented 9 months ago

Description

In Kubernetes version 1.27.8, using kube-prometheus deployment, it has been observed that increasing the replica count of kubeStateMetrics from 1 to 2 results in Lens displaying doubled resource limits for Pods. However, the actual YAML files for Pods remain unchanged. Reverting the replica count back to 1 restores the normal behavior of Pod resource limits.

Steps to Reproduce

  1. Deploy kube-prometheus using Kubernetes version 1.27.8.
  2. Increase the replica count of kubeStateMetrics from 1 to 2.
  3. Observe the resource limits for Pods in Lens.

Expected Behavior

The resource limits for Pods in Lens should be reflective of the configuration in the YAML files, not influenced by the replica count of kubeStateMetrics.

image

Actual Behavior

Lens displays doubled resource limits for Pods seemingly influenced by the replica count of kubeStateMetrics.

Deployment Environment

Additional Information

Reverting the kubeStateMetrics replica count to 1 restores the normal behavior of Pod resource limits. Please verify and address this issue. If additional information or testing is required, please let me know.

Thank you!