Skip to content

fix: add metrics-server to resolve metric errors in KOF UI in local environment#655

Merged
AndrejsPon00 merged 5 commits into
mainfrom
add-metrics-server
Dec 19, 2025
Merged

fix: add metrics-server to resolve metric errors in KOF UI in local environment#655
AndrejsPon00 merged 5 commits into
mainfrom
add-metrics-server

Conversation

@AndrejsPon00
Copy link
Copy Markdown
Contributor

Closes #618

This PR adds the metrics-server for adopted and management (mothership) clusters.

Copilot AI review requested due to automatic review settings December 4, 2025 12:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables the metrics-server component in local development environments to resolve metric-related errors in the KOF UI. The metrics-server is added as a chart dependency and configured for both the mothership (management cluster) and adopted clusters with insecure TLS settings appropriate for local development.

Key changes:

  • Add metrics-server as a Helm chart dependency to kof-mothership and kof-collectors
  • Configure metrics-server with --kubelet-insecure-tls flag for local dev environments
  • Enable metrics-server in demo cluster configurations and local development Makefile

Reviewed changes

Copilot reviewed 10 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
charts/kof-mothership/Chart.yaml Adds metrics-server 3.12.1 as a conditional chart dependency
charts/kof-mothership/values.yaml Defines metrics-server configuration with insecure TLS arg and disabled by default
charts/kof-collectors/Chart.yaml Adds metrics-server 3.12.1 as a conditional chart dependency
charts/kof-collectors/values.yaml Defines metrics-server configuration with insecure TLS arg and disabled by default
demo/cluster/adopted-cluster-regional.yaml Enables metrics-server via cluster annotations
demo/cluster/adopted-cluster-kcm-region.yaml Enables metrics-server via cluster annotations in config
demo/cluster/adopted-cluster-istio-regional.yaml Enables metrics-server via cluster annotations in config
demo/cluster/adopted-cluster-istio-child.yaml Enables metrics-server via cluster annotations in config
demo/cluster/adopted-cluster-child.yaml Enables metrics-server inline in values
Makefile Enables metrics-server in dev-ms-deploy target for local development

Comment thread charts/kof-mothership/values.yaml Outdated
Comment thread charts/kof-collectors/values.yaml Outdated
Comment thread charts/kof-mothership/values.yaml Outdated
@AndrejsPon00 AndrejsPon00 force-pushed the add-metrics-server branch 3 times, most recently from 5cd78ba to a5049d4 Compare December 4, 2025 15:52
denis-ryzhkov
denis-ryzhkov previously approved these changes Dec 4, 2025
gmlexx
gmlexx previously approved these changes Dec 4, 2025
@AndrejsPon00 AndrejsPon00 marked this pull request as draft December 8, 2025 09:36
@AndrejsPon00 AndrejsPon00 dismissed stale reviews from denis-ryzhkov and gmlexx via 743bf6c December 8, 2025 09:38
@AndrejsPon00 AndrejsPon00 force-pushed the add-metrics-server branch 2 times, most recently from 18d0cf6 to 51ad304 Compare December 18, 2025 06:28
@AndrejsPon00 AndrejsPon00 marked this pull request as ready for review December 18, 2025 12:21
Comment thread .github/workflows/pr_test_adopted_upgrade.yml Outdated
Comment thread charts/kof-collectors/values.yaml Outdated
Comment thread charts/kof-mothership/values.yaml Outdated
@AndrejsPon00 AndrejsPon00 requested a review from gmlexx December 19, 2025 08:37
@AndrejsPon00 AndrejsPon00 merged commit a7bf460 into main Dec 19, 2025
11 of 12 checks passed
@AndrejsPon00 AndrejsPon00 deleted the add-metrics-server branch December 19, 2025 14:24
@github-project-automation github-project-automation Bot moved this to Done in k0rdent Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Fix metrics fetching by KOF UI on Adopted Clusters

4 participants