From 416cf481f0f62800e74041fe948260438be7ca65 Mon Sep 17 00:00:00 2001 From: Boemeltrein <130394941+Boemeltrein@users.noreply.github.com> Date: Fri, 13 Jun 2025 12:03:17 +0200 Subject: [PATCH] fix(kubernetes-dashboard): api pod sidecar (#36210) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # In the pod `kubernetes-dashboard-api` a lot of logs: `1 manager.go:96] Metric client health check failed: the server is currently unable to handle the request (get services kubernetes-dashboard-scraper). Retrying in 30 seconds.` Deploying the official chart, all is working. Search a long time in the deployments, rbacs etc. But couldn't find any difference why. But adding this is working as well. So for now this will do. Extra info where I got this from: https://github.com/kubernetes/dashboard/issues/5440 **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code - [ ] 📜 Documentation Changes **🧪 How Has This Been Tested?** On my own cluster https://github.com/Boemeltrein/TalosCluster/commit/04f74d58ce99bdf10833dfab6be95be33d33e381 **📃 Notes:** **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made changes to the documentation - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or `fix(docs):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Signed-off-by: Boemeltrein <130394941+Boemeltrein@users.noreply.github.com> --- charts/premium/kubernetes-dashboard/Chart.yaml | 2 +- charts/premium/kubernetes-dashboard/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/premium/kubernetes-dashboard/Chart.yaml b/charts/premium/kubernetes-dashboard/Chart.yaml index 7a6db284ec2..35b5e810b0a 100644 --- a/charts/premium/kubernetes-dashboard/Chart.yaml +++ b/charts/premium/kubernetes-dashboard/Chart.yaml @@ -48,4 +48,4 @@ sources: - https://hub.docker.com/r/kubernetesui/dashboard-web - https://kubernetes-dashboard.universe.tf type: application -version: 1.16.1 +version: 1.16.2 diff --git a/charts/premium/kubernetes-dashboard/values.yaml b/charts/premium/kubernetes-dashboard/values.yaml index 66e05ca2410..e70c0c94113 100644 --- a/charts/premium/kubernetes-dashboard/values.yaml +++ b/charts/premium/kubernetes-dashboard/values.yaml @@ -161,6 +161,7 @@ workload: args: - --namespace={{ .Release.Namespace }} - --metrics-scraper-service-name=kubernetes-dashboard-scraper + - --sidecar-host={{ printf "http://%v-scraper.%v.svc.cluster.local:8000" (include "tc.v1.common.lib.chart.names.fullname" $) .Release.Namespace }} env: CSRF_KEY: secretKeyRef: