Skip to content

Commit

Permalink
docs: update azure doc on installing exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldotyu committed Nov 12, 2023
1 parent c925278 commit 275783d
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions demo/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,27 +261,18 @@ To test with real data from the Carbon Aware SDK, head over to this [repo](https
If you do not have WattTime API credentials you can skip this step and still test this operator using mock carbon intensity data

```bash
cd /tmp
git clone https://github.com/Azure/kubernetes-carbon-intensity-exporter.git
cd kubernetes-carbon-intensity-exporter
```

Using Helm, install the Carbon Intensity Exporter Operator into the AKS cluster.

```bash
export LOCATION=westus
export WATTTIME_USERNAME=<YOUR_USERNAME>
export WATTTIME_PASSWORD=<YOUR_PASSWORD>

helm install carbon-intensity-exporter \
--set carbonDataExporter.region=$LOCATION \
--set wattTime.username=$WATTTIME_USERNAME \
--set wattTime.password=$WATTTIME_PASSWORD \
./charts/carbon-intensity-exporter

# go back to repo directory
cd /workspaces/carbon-aware-keda-operator
export REGION=westus
export WT_USERNAME=<YOUR_USERNAME>
export WT_PASSWORD=<YOUR_PASSWORD>

helm install carbon-intensity-exporter oci://ghcr.io/azure/kubernetes-carbon-intensity-exporter/charts/carbon-intensity-exporter \
--version v0.3.0 \
--set carbonDataExporter.region=$REGION \
--set wattTime.username=$WT_USERNAME \
--set wattTime.password=$WT_PASSWORD
```

Verify carbon intensity data is in place.
Expand Down

0 comments on commit 275783d

Please sign in to comment.