@kinvolk/headlamp-plugin
Version:
The needed infrastructure for building Headlamp plugins.
22 lines (14 loc) • 687 B
Markdown
# Example Plugin: Pod Counter
This example plugin shows how to put something in the appbar at the top of Headlamp. Also how to
use the K8s API to count the number of pods in the cluster.

To run the plugin:
```bash
cd plugins/examples/pod-counter
npm install
npm start
# See the app bar at the top of Headlamp has changed to show the number of Pods.
```
The main code for the plugin is in [src/index.tsx](src/index.tsx).
See the API documentation for:
- [registerAppBarAction](https://headlamp.dev/docs/latest/development/api/modules/plugin_registry/#registerappbaraction)