fix(victoria-metrics-agent): add nodes/proxy RBAC permission - #291
Open
davidelkind1 wants to merge 1 commit into
Open
fix(victoria-metrics-agent): add nodes/proxy RBAC permission#291davidelkind1 wants to merge 1 commit into
davidelkind1 wants to merge 1 commit into
Conversation
Fixes KPS-6424 Victoria Metrics Agent needs permission to access nodes/proxy endpoint to scrape kubelet resource metrics (/metrics/resource). Without this permission, the agent receives 403 Forbidden errors. This adds the missing nodes/proxy permission to the ClusterRole via rbac.extraRules configuration.
davidelkind1
requested review from
Awish021,
BorisRodman,
IdoKendo,
Tomerfi1210,
ilanovadia,
michaelamar1991 and
omerxx
as code owners
June 2, 2026 08:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes KPS-6424
Victoria Metrics Agent is failing to scrape kubelet resource metrics in all clusters due to insufficient RBAC permissions. The agent receives a 403 Forbidden response when attempting to access .
Root Cause
The ClusterRole for the victoria-metrics-agent service account has permissions for
nodesandnodes/metrics, but is missingnodes/proxy.Solution
This PR adds the missing
nodes/proxypermission to the ClusterRole via therbac.extraRulesconfiguration in the victoriaMetricsAgent section.Testing
After this change is deployed:
kubelet-resourcescrape target should report healthyRelated Issue
https://zestyco.atlassian.net/browse/KPS-6424