From 411a77ef2f92cf78f8a7c1412d621a9e93700d54 Mon Sep 17 00:00:00 2001 From: Roger Coll Date: Wed, 31 Jul 2024 10:44:11 +0200 Subject: [PATCH] feat: add rules for kubelet node metrics (#38) --- kubernetes/elastic-helm/daemonset.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/kubernetes/elastic-helm/daemonset.yaml b/kubernetes/elastic-helm/daemonset.yaml index d5fab18413..d64b2150af 100644 --- a/kubernetes/elastic-helm/daemonset.yaml +++ b/kubernetes/elastic-helm/daemonset.yaml @@ -47,3 +47,22 @@ extraEnvs: configMap: create: false existingName: elastic-otelcol-agent-ds + +# kubeletstats additional rules for Node metrics +clusterRole: + create: true + rules: + - apiGroups: + - "" + resources: + - nodes/proxy + verbs: + - get + - apiGroups: + - "" + resources: + - nodes + verbs: + - get + - watch + - list