See this page for all Kubecost install options.
If you would like to deploy the cost model (w/o dashboards) directly a pod on your cluster, complete the steps listed below.
- Set this environment variable to the address of your prometheus server
kubectl create namespace cost-model
kubectl apply -f kubernetes/ --namespace cost-model
kubectl port-forward --namespace cost-model service/cost-model 9003
To test that the server is running, you can hit http://localhost:9003/costDataModel?timeWindow=1d
Note: This approach provides less functionality compared to other install options referenced above. Also, Prometheus and kube-state-metrics are external dependencies for this installation path.