How to run the webapp
Webapp
Chantico provides a webapp that visualizes the parent-child relationships of DataCenterResource objects. It requires access to a Kubernetes cluster that contains the CRD DataCenterResource.
Run the webapp from the Helm chart
The Helm chart does not deploy the webapp by default. Enable it when installing Chantico:
The webapp Service is internal to the cluster by default. Forward it to your machine and open http://localhost:8080:
Use a locally built image in the development cluster
When using the local development environment, make cluster-configure deploys
the webapp with the image from GHCR by default
(ghcr.io/chantico-project/images/chantico-visualisation-webapp:<current-version>).
During development on the webapp, the image can be built and loaded into the
Kind cluster manually:
After rebuilding the image with the tag, load it and restart the deployment to pick up the changes:
TL;DR
Configuration
We currently allow environment variables to configure the webapp:
- PORT (default: 8080, port number for http server)
- KUBECONFIG (path to kubernetes config; when unset, the default loading rules apply, i.e. ~/.kube/config, or in-cluster config when running in a cluster)
Example
Limitations
The current implementation is basic. There is currently no visual distinction between making a reference to an existing parent, and referencing a non-existing parent. It also doesn’t show error messages from the controller.