From 26b7943660c11b4cd5724e9a4434f1142986ba2b Mon Sep 17 00:00:00 2001 From: Aldira Putra Raharja Date: Wed, 13 Oct 2021 20:16:55 +0700 Subject: [PATCH] update api-report and update docs around caData Signed-off-by: Aldira Putra Raharja --- docs/features/kubernetes/configuration.md | 14 ++++++++++++++ plugins/kubernetes-backend/api-report.md | 2 ++ 2 files changed, 16 insertions(+) diff --git a/docs/features/kubernetes/configuration.md b/docs/features/kubernetes/configuration.md index fc32f4da70..1be1b3471a 100644 --- a/docs/features/kubernetes/configuration.md +++ b/docs/features/kubernetes/configuration.md @@ -140,6 +140,20 @@ for real examples. PEM-encoded certificate authority certificates. +This values could be obtained via inspecting the kube config file under +`clusters.cluster.certificate-authority-data`. For GKE, execute the following +command to obtain the value + +``` +gcloud container clusters describe \ + --zone= \ + --format="value(masterAuth.clusterCaCertificate)" +``` + +See also +https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication#environments-without-gcloud +for complete docs about GKE without gcloud. + #### `gke` This cluster locator is designed to work with Kubernetes clusters running in diff --git a/plugins/kubernetes-backend/api-report.md b/plugins/kubernetes-backend/api-report.md index 3d52c4ff43..34ab7d4db1 100644 --- a/plugins/kubernetes-backend/api-report.md +++ b/plugins/kubernetes-backend/api-report.md @@ -27,6 +27,8 @@ export interface AWSClusterDetails extends ClusterDetails { export interface ClusterDetails { // (undocumented) authProvider: string; + // (undocumented) + caData?: string | undefined; dashboardApp?: string; dashboardUrl?: string; name: string;