Ajay Tripathy e59c4cf3ec Merge branch 'develop' into jesse-readme-update %!s(int64=3) %!d(string=hai) anos
..
src e59c4cf3ec Merge branch 'develop' into jesse-readme-update %!s(int64=3) %!d(string=hai) anos
.babelrc 941c807ceb Upgrading to Parcel2. Dependabot found a security issue with Parcel 1.12.5, but that is the latest version of Parcel1 and no new versions will be released. %!s(int64=5) %!d(string=hai) anos
.dockerignore 3734cd3618 Update opencost ui doc %!s(int64=3) %!d(string=hai) anos
Dockerfile 83f567394d added default nginx config %!s(int64=3) %!d(string=hai) anos
README.md 565750498c README updated to reflect OpenCost and logo added to the UI. %!s(int64=3) %!d(string=hai) anos
default.nginx.conf 3734cd3618 Update opencost ui doc %!s(int64=3) %!d(string=hai) anos
package-lock.json 3bdc762541 Bump terser from 5.10.0 to 5.14.2 in /ui %!s(int64=3) %!d(string=hai) anos
package.json 5457f9579e Bump parcel + dependency versions %!s(int64=4) %!d(string=hai) anos

README.md

OpenCost UI

The preferred install path for Kubecost is via Helm chart, and is explained here

To manually run the OpenCost UI, follow the steps below.

Requirements

  • nodejs >= 12.0.0
  • npm >= 7.0.0

Installation & Running

To run the UI, open a terminal to the opencost/ui/ directory (where this README is located) and run

npm install

This will install required dependencies and build tools. To launch the UI, run

npx parcel src/index.html

This will launch a development server, serving the UI at http://localhost:1234 and targeting the data for an instance of OpenCost running at http://localhost:9090. To access an arbitrary OpenCost install, you can use

kubectl port-forward deployment/opencost 9090:9003

for your choice of namespace and cloud context.