Skip to content

Commit

Permalink
update KEDA readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Jan 9, 2025
1 parent c686415 commit 87aaddb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
21 changes: 19 additions & 2 deletions examples/radix-sample-keda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ The sample is also upgraded from Dotnet core 3.1 to Dotnet 8.

## Configuring resources

You need the following resources in Azure to run this example (these can be installed automatically with Terraform):

- Azure ServiceBus Queue
- Managed Identity
- Assigned `Azure Service Bus Data Owner` role for your ServiceBus namespace
- Federated credentials:
- Processor subject: `"system:serviceaccount:<YOUR-APP-NAME>-<YOUR-ENV-NAME>:processor-sa"`
- Web subject: `"system:serviceaccount:<YOUR-APP-NAME>-<YOUR-ENV-NAME>:web-sa"`
- Keda Federated Credentials
- subject: `"system:serviceaccount:keda:keda-operator"`

All Federated Credentials **Issuers** is the same, and can be found in the About page in the cluster https://console.radix.equinor.com/about (or in https://console.playground.radix.equinor.com/about for playground). It will look something like this: `https://northeurope.oic.prod-aks.azure.com/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000/`.

### Configure resources with Terraform
Configure `terraform.tf` and modify `resource_group_name`, `location`, `name`, and `radix_app_name` (minium).

```shell
Expand All @@ -27,8 +41,11 @@ terraform apply
# queue_name = "orders"
```

Configure `appsettings.json` (or create a `appsettings.local.json`) in `./Radix.Samples.DotNet.Web`, `./Radix.Samples.DotNet.Processor` and `./Radix.Samples.DotNet.Generator`.
### App Settings

Configure `appsettings.json` in `./Radix.Samples.DotNet.Web`, `./Radix.Samples.DotNet.Processor` and `./Radix.Samples.DotNet.Generator`.

## Development
Start web server:
```shell
cd src/Radix.Samples.DotNet.Web; dotnet run
Expand Down Expand Up @@ -80,7 +97,7 @@ metadata:
authentication:
identity:
azure:
clientId: c2f17b62-7c2f-4541-acbc-22d7cfc66e0b
clientId: 00000000-0000-0000-0000-000000000000 # Replace with Client ID of your managed identity
```
Expand Down
10 changes: 5 additions & 5 deletions examples/radix-sample-keda/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ provider "azurerm" {
}

locals {
location = "North Europe" #FIXME
resource_group_name = "test-resources" #FIXME
location = "North Europe" #Optional
resource_group_name = "test-resources" #Optional

name = "<Your service bus namespace>" #FIXME
queue_name = "orders"
managed_id_name = "radix-sample-keda"
managed_id_name = "<Your Managed Identity Name>" #FIXME: Probably id-appname-dev

radix_app_name = "radix-keda-sample"
radix_app_env = "prod"
radix_app_name = "<Your App Name>" #FIXME
radix_app_env = "<Your Environment Name>" #FIXME: probably dev

# https://console.radix.equinor.com/about
radix_oidc_issuer_url = "https://northeurope.oic.prod-aks.azure.com/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000/" #FIXME
Expand Down

0 comments on commit 87aaddb

Please sign in to comment.