fix([open|kube]cost): review and adjust commands

This commit is contained in:
Michele Cereda
2025-06-24 23:46:40 +02:00
parent 2f51b9dec3
commit 5f448b6ece
2 changed files with 6 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ Built on top of [OpenCost].
```sh
helm repo add 'kubecost' 'https://kubecost.github.io/cost-analyzer/' && helm repo update 'kubecost'
helm search repo 'kubecost/cost-analyzer' --versions
helm show values --repo 'https://kubecost.github.io/cost-analyzer/' 'cost-analyzer'
@@ -24,10 +25,10 @@ helm --namespace 'kubecost' upgrade --install 'kubecost' --create-namespace \
--set 'persistentVolume.enabled=false'
# EKS-specific
VERSION='' \
VERSION='2.8.0' \
helm --namespace 'kubecost' upgrade --install 'kubecost' --create-namespace \
'oci://public.ecr.aws/kubecost/cost-analyzer' --version "$VERSION" \
--values "https://raw.githubusercontent.com/kubecost/cost-analyzer-helm-chart/$VERSION/cost-analyzer/values-eks-cost-monitoring.yaml"
--values "https://raw.githubusercontent.com/kubecost/cost-analyzer-helm-chart/v$VERSION/cost-analyzer/values-eks-cost-monitoring.yaml"
helm --namespace 'kubecost' uninstall 'kubecost' \
&& kubectl delete namespace 'kubecost'
@@ -39,8 +40,8 @@ helm --namespace 'kubecost' uninstall 'kubecost' \
<summary>Usage</summary>
```sh
kubectl --namespace 'kubecost' port-forward 'svc/kubecost-cost-analyzer' '9090' \
&& open 'http://localhost:9090'
kubectl --namespace 'kubecost' port-forward 'deployment/kubecost-cost-analyzer' '9090'
open 'http://localhost:9090'
```
</details>

View File

@@ -46,7 +46,7 @@ helm --namespace 'opencost' uninstall 'opencost' \
```sh
kubectl --namespace 'opencost' port-forward 'service/opencost' '9003' '9090'
curl 'http://localhost:9003/allocation/compute?window=60m' \
curl 'http://localhost:9003/allocation/compute?window=60m'
open 'http://localhost:9090'
```