Browse Source

Create deploying-as-a-pod.md

Webb Brown 6 năm trước cách đây
mục cha
commit
43272374d3
1 tập tin đã thay đổi với 14 bổ sung0 xóa
  1. 14 0
      deploying-as-a-pod.md

+ 14 - 0
deploying-as-a-pod.md

@@ -0,0 +1,14 @@
+## Deploying as a pod
+
+See this page for all [Kubecost install options](http://docs.kubecost.com/install).
+
+If you would like to deploy the cost model (w/o dashboards) directly a pod on your cluster, complete the listed below. 
+
+1. Set [this environment variable](https://github.com/kubecost/cost-model/blob/master/kubernetes/deployment.yaml#L30) to the address of your prometheus server
+2. `kubectl create namespace cost-model`
+3. `kubectl apply -f kubernetes/ --namespace cost-model`
+4. `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](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.