The OpenCost UI is included in the default installation of OpenCost and provides a visualization of the Kubernetes allocations and the related Cloud Costs. This walkthrough highlights some of the components of the OpenCost UI:
Once your OpenCost has been installed, wait for the pod to be ready and port forward with:
kubectl port-forward --namespace opencost service/opencost 9003 9090
To verify that the UI and server are running, you may access the OpenCost UI at http://localhost:9090.
Ingress for OpenCost UI
If you want to open more semi-permanent access to the OpenCost UI you may add an ingress rule.
Save the following to an
ingress.yaml and apply it with
kubectl apply -f ingress.yaml -n opencost
- path: /
This is also supported in the Helm chart, add the following to the relevant section of your
local.yaml and apply via Helm.
- host: HOSTNAME
You should now have access via http://HOSTNAME
The source for the OpenCost UI is in https://github.com/opencost/opencost/tree/develop/ui with instructions for developing locally.