Skip to content

Digitalist-Open-Cloud/backstage-plugin-k8sgpt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8sgpt

Welcome to the k8sgpt plugin!

Getting started

K8sGPT installation:

You need to install K8sGPT via the operator. You need the operator installation because the operator also triggers k8sgpt analyzes and saves the results in result CRs which get display in this backstage plugin. You will need at least v0.0.17 which has backstage-support included.

Install plugin:

yarn add --cwd packages/app @digitalist-open-cloud/backstage-plugin-k8sgpt

Import plugin and embed in the entities page:

// packages/app/src/components/catalog/EntityPage.tsx

import { K8sGPTPage } from '@digitalist-open-cloud/backstage-plugin-k8sgpt';

// ...

// add this section to the place where the serviceEntityPage gets defined
// const serviceEntityPage = (
// ...
    <EntityLayout.Route path="/k8sgpt" title="K8sGPT">
      <K8sGPTPage />
    </EntityLayout.Route>

Backstage dependencies and configuration

This plugin depends on the kubernetes-common and kubernetes-backend plugin. If you haven't already installed and configured the kubernetes plugin, please follow the instructions on https://backstage.io/docs/features/kubernetes/ .

Please be aware the the used ClusterRole as described in https://backstage.io/docs/features/kubernetes/configuration#role-based-access-control also needs this permissions to read the k8sgpt results:

- apiGroups:
  - core.k8sgpt.ai
  resources:
  - results
  verbs:
  - get
  - list

What you will see

plugin-k8sgpt shows you the k8sgpt Results for the corresponding entity in a table like this:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%