This plugin adds custom datasources for OpenShift dashboards. It requires OpenShift 4.10+
Node.js, npm and go are required to build and run the plugin. To run OpenShift console in a container, either Docker or podman 3.2.0+ and oc are required.
- Install the dependencies with
make install
- Start the backend with
make start-backend
- In a different terminal, start the frontend with
make start-frontend
- In a different terminal, start the console
a.
oc login
(requires oc and an OpenShift cluster) b.make start-console
(requires Docker or podman 3.2.0+)
This will run the OpenShift console in a container connected to the cluster you've logged into. The plugin backend server runs on port 9002 with CORS enabled.
Navigate to http://localhost:9000 to see the running plugin.
make build-image
You can deploy the plugin into a cluster by running the helm chart at charts/console-dashboards-plugin
.
It will use the image from quay.io/gbernal/console-dashboards-plugin:0.0.1
and run a go HTTP server
to serve the plugin's assets and proxy to the configured datasources.
helm upgrade -i console-dashboards-plugin charts/console-dashboards-plugin -n console-dashboards --create-namespace