From e0de29544ef4765734eb8741316a49dadd540628 Mon Sep 17 00:00:00 2001 From: gazandi Date: Mon, 1 Mar 2021 23:44:14 +0700 Subject: [PATCH] fix: bug Signed-off-by: gazandi --- docs/features/kubernetes/troubleshooting.md | 40 +++++++++++---------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/docs/features/kubernetes/troubleshooting.md b/docs/features/kubernetes/troubleshooting.md index 519b81002a..9dcca33f5b 100644 --- a/docs/features/kubernetes/troubleshooting.md +++ b/docs/features/kubernetes/troubleshooting.md @@ -1,15 +1,14 @@ --- -id: troubleshooting-k8s +id: troubleshooting title: Troubleshooting Kubernetes sidebar_label: Troubleshooting description: Troubleshooting for Kubernetes --- -## Kubernetes is not showing up on Service Entities +## Kubernetes is not showing up on Service Entities -Sometimes, kubernetes is not showing up on service entities, we -should test your k8s cluster are already connected to backstage -or not. +Sometimes, kubernetes is not showing up on service entities, we should test your +k8s cluster are already connected to backstage or not. ```curl # curl request @@ -26,6 +25,7 @@ curl --location --request POST '{{backstage-backend-url}}:{{backstage-backend-po ``` The curl response should have resources from kubernetes + ```json # curl response { @@ -68,30 +68,32 @@ The curl response should have resources from kubernetes ``` -Kubernetes will not be showing anything if annotations not match with annotations -on k8s service.yaml / deployment.yaml / k8s related yaml. We recommend you for -using label selector with adding two labels: +Kubernetes will not be showing anything if annotations not match with +annotations on k8s service.yaml / deployment.yaml / k8s related yaml. We +recommend you for using label selector with adding two labels: `backstage: ` and `backstage.io/kubernetes-id: `. ```yaml # k8s related yaml (service.yaml, deployment.yaml, ingress.yaml) -metadata: { - creationTimestamp: "2022-03-13T13:52:46.000Z", - labels: { - "app": , - "backstage": , - "backstage.io/kubernetes-id": - }, - "name": , - "namespace": -} +metadata: + { + creationTimestamp: '2022-03-13T13:52:46.000Z', + labels: + { + 'app': , + 'backstage': , + 'backstage.io/kubernetes-id': , + }, + 'name': , + 'namespace': , + } ``` and the catalog info annotations would use label selector: ```yaml # catalog-info.yaml (backstage) -annotations: +annotations: backstage.io/kubernetes-label-selector: 'backstage=