Skip to content

Commit

Permalink
Add vhostName to Auth Params RabbitMQ doc
Browse files Browse the repository at this point in the history
Signed-off-by: dttung2905 <ttdao.2015@accountancy.smu.edu.sg>
  • Loading branch information
dttung2905 committed Jan 20, 2025
1 parent 71e5941 commit dc9af5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion content/docs/2.17/scalers/rabbitmq-queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ TriggerAuthentication CRD is used to connect and authenticate to RabbitMQ:

> See the [RabbitMQ Ports](https://www.rabbitmq.com/networking.html#ports) section for more details on how to configure the ports.

- `vhostName` - Vhost to use for the connection, overrides any vhost set in the connection string from `host`/`hostFromEnv`. (Optional / Required if Azure AD Workload Identity authorization is used)
**Username and Password based authentication:**

This allows sensitive credentials to be stored and managed separately from the connection string.
Expand Down Expand Up @@ -106,7 +107,8 @@ kind: Secret
metadata:
name: keda-rabbitmq-secret
data:
host: <AMQP URI connection string> # base64 encoded value of format amqp://guest:password@localhost:5672/vhost
host: <AMQP URI connection string> # base64 encoded value of format amqp://guest:password@localhost:5672
vhostName: vhost
---
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
Expand All @@ -118,6 +120,9 @@ spec:
- parameter: host
name: keda-rabbitmq-secret
key: host
- parameter: vhostName
name: keda-rabbitmq-secret
key: vhostName
---
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
Expand Down

0 comments on commit dc9af5d

Please sign in to comment.