Update troubleshooting.md

Signed-off-by: gazandi <gazandi@ruangguru.com>
This commit is contained in:
Gazandi
2021-03-04 20:40:51 +07:00
committed by gazandi
parent 12b73bbb9a
commit 228538165d
+2 -6
View File
@@ -71,10 +71,6 @@ The Kubernetes tab will not show anything when the catalog info annotation does
not match the related Kubernetes resource. We recommend you add the following
labels to your resources and use the label selector annotation as follows:
`backstage: <selector>` and `backstage.io/kubernetes-id: <entity-service-name>`.
`backstage: <selector>` for matching with catalog-info.yaml
`backstage.io/kubernetes-id: <entity-service-name>`for get k8s service-related
objects.
[See the plugin code](https://github.com/backstage/backstage/blob/a1f587c/plugins/kubernetes-backend/src/service/KubernetesFetcher.ts#L119)
@@ -85,7 +81,7 @@ metadata:
creationTimestamp: '2022-03-13T13:52:46.000Z'
labels:
app: <k8s-app-name>
backstage: <selector>
env: <environment>
backstage.io/kubernetes-id: <service-entity-name>
name: <k8s-app-name>
namespace: <namespace>
@@ -99,5 +95,5 @@ and the catalog info annotations would use label selector:
```yaml
# catalog-info.yaml (backstage)
annotations:
backstage.io/kubernetes-label-selector: 'backstage=<selector>'
backstage.io/kubernetes-label-selector: '<label-selector>'
```