Skip to content

Conversation

@Sagar2366
Copy link
Contributor

No description provided.

## KEDA RabbitMQ Configuration
## -------------------------------------------------------------------------------

keda:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add an enabled here (default false), so we can use that to add the keda pieces.

name: "rabbitmq"
## Base64 rabbitmq host path in the form of PROTOCOL://<RABBITMQ_USER>:RABBITMQ_PASSWORD@RABBITMQ_HOST/vhost
## e.g. echo -n 'http://guest:[email protected]:15672//' | base64
host: aHR0cDovL2d1ZXN0Omd1ZXN0QHBlY2FuLXJhYmJpdG1xLmRlZmF1bHQ6MTU2NzIvLw==
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of hardcoding it in the url, can we compute this in the secret?

metadata:
name: {{ .Values.keda.rabbitmq.name }}-secret
data:
host: {{ .Values.keda.rabbitmq.host }} # base64 encoded value of connection string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we can use:

{{ include "pecan.rabbitmq" . | b64enc }}

@@ -0,0 +1,31 @@
{{- if .Values.models }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we add a {{ if .Values.keda.enabled }} then we can disable this and only add these resources if they have keda installed. Otherwise we are forcing keda to be installed.

```bash
$ helm repo add ncsa https://opensource.ncsa.illinois.edu/charts/
$ helm repo add bitnami https://raw.githubusercontent.com/bitnami/charts/pre-2022/bitnami
$ helm repo add kedacore https://kedacore.github.io/charts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we create a subsection and for auto-scaling. And explain that for this to work they need to install keda first, and enable it in the pecan helm chart as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants