Enable Kubernetes frontend plugin

The Kubernetes frontend plugin is installed but disabled by default. Enable the frontend plugin to add a Kubernetes tab to your entity pages.

Before you begin

You have installed and configured the Kubernetes backend plugin.

Procedure

  1. Enable the Kubernetes frontend plugin in your dynamic-plugins.yamlfile.
  2. Install the plugin in your RHDH root directory with the following command:
    yarn --cwd packages/app add @backstage/plugin-kubernetes
  3. In the app-config.yaml file, enable the associated entity-content.
    Note
    By default, the Kubernetes tab appears only for entities that have a backstage.io/kubernetes-id or backstage.io/kubernetes-label-selector annotation.
  4. (Optional) Define which additional entities should display the Kubernetes tab by adding a configblock to the extension:
    
                app:
      extensions:
        - entity-content:kubernetes/kubernetes:
            config:
              filter:
                kind:
                  $in:
                    - component
                    - api
                    - resource
                    - system
              

Results

Pages of entities with Kubernetes resources have a Kubernetes tab.