From bf32e9eea6d8823538cce04da5184248bc2e19fa Mon Sep 17 00:00:00 2001 From: Artur Wierzbicki Date: Wed, 24 Sep 2025 19:20:34 +0400 Subject: [PATCH] Docs: update kubectl instructions (#111530) update kubectl instructions --- .../architecture/k8s-inspired-backend-arch.md | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/contribute/architecture/k8s-inspired-backend-arch.md b/contribute/architecture/k8s-inspired-backend-arch.md index 84197d93d85..4d16c6e8118 100644 --- a/contribute/architecture/k8s-inspired-backend-arch.md +++ b/contribute/architecture/k8s-inspired-backend-arch.md @@ -249,14 +249,16 @@ The frontend code is also updated gradually. As Resource API endpoints stabilize ## 5. So does it all mean I can point `kubectl` directly at the Grafana server and use it to create dashboards? -**Yes, with caveats.** `kubectl` is supported under a dev-mode-only, experimental `grafanaAPIServerEnsureKubectlAccess` feature flag and requires `server.protocol` set to `https`. Enabling `https` causes Grafana to configure its web server with TLS certificates, either loading specified certificate/key files or generating self-signed ones if none are provided. +**It's not an officially supported of accessing Grafana APIs, but yes.** `kubectl` requires `server.protocol` set to `https`. Enabling `https` causes Grafana to configure its web server with TLS certificates, either loading specified certificate/key files or generating self-signed ones if none are provided. + +The easiest way to use `kubectl` is under a dev-mode-only, experimental `grafanaAPIServerEnsureKubectlAccess` feature flag: ```bash #!/bin/bash # Assumes Grafana running from repo root - adjust if running packaged Grafana (e.g., /usr/local/etc/grafana/grafana-apiserver/grafana.kubeconfig). export KUBECONFIG=../../data/grafana-apiserver/grafana.kubeconfig -cat <