The Headlamp Backend plugin provides endpoints for
starting the headlamp server binary with the kubernetes context specified in the app-config.yaml
file. It also provides an endpoint for refreshing the kubeconfig file used by the headlamp server.
The Headlamp Backend plugin is configured by setting the headlampBackend.binaryPath
in the app-config.yaml
file. For example:
yarn --cwd packages/backend add @headlamp-k8s/backstage-plugin-headlamp-backend
...
backend.add(import('@headlamp-k8s/backstage-plugin-headlamp-backend'));
If you want to use a custom headlamp binary or custom plugins you can set the headlampBackend.binaryPath
and headlampBackend.pluginsPath
parameters in the app-config.yaml
file.
example:
headlampBackend:
binaryPath: /path/to/headlamp/binary
pluginsPath: /path/to/headlamp/plugins