keda: fixed ScaledObject parameter value type (#1765)

* keda: turned queueLength's value into string

* keda: renamed TriggerAuthentication

* keda: updated max replica count for staging-mainnet
This commit is contained in:
Sebastian Cavedale 2024-10-04 18:04:46 -03:00 committed by GitHub
parent 4911f06c0a
commit 971f9368f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 15 additions and 15 deletions

View File

@ -1,7 +1,7 @@
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: keda-auth-aws-{{ .NAME }}
name: keda-auth-{{ .NAME }}
namespace: {{ .NAMESPACE }}
spec:
podIdentity:
@ -20,8 +20,8 @@ spec:
triggers:
- type: {{ .SCALE_TYPE }}
authenticationRef:
name: keda-auth-aws-{{ .NAME }}
name: keda-auth-{{ .NAME }}
metadata:
awsRegion: {{ .SQS_AWS_REGION }}
queueURL: {{ .PIPELINE_SQS_URL }}
queueLength: {{ .SCALE_VALUE }}
queueLength: "{{ .SCALE_VALUE }}"

View File

@ -3,7 +3,7 @@ NAMESPACE=wormscan
NAME=wormscan-analytics
REPLICAS=2
MIN_REPLICAS=2
MAX_REPLICAS=6
MAX_REPLICAS=4
SCALE_TYPE=aws-sqs-queue
SCALE_VALUE=5
IMAGE_NAME=

View File

@ -12,4 +12,4 @@ spec:
- type: {{ .SCALE_TYPE }}
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: {{ .SCALE_VALUE }}
value: "{{ .SCALE_VALUE }}"

View File

@ -4,7 +4,7 @@ NAME=wormscan-api
PORT=8000
REPLICAS=2
MIN_REPLICAS=2
MAX_REPLICAS=6
MAX_REPLICAS=4
SCALE_TYPE=memory
SCALE_VALUE=90
IMAGE_NAME=

View File

@ -12,4 +12,4 @@ spec:
- type: {{ .SCALE_TYPE }}
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
metadata:
value: {{ .SCALE_VALUE }}
value: "{{ .SCALE_VALUE }}"

View File

@ -3,7 +3,7 @@ NAMESPACE=wormscan
NAME=wormscan-parser
REPLICAS=2
MIN_REPLICAS=2
MAX_REPLICAS=6
MAX_REPLICAS=4
SCALE_TYPE=aws-sqs-queue
SCALE_VALUE=5
IMAGE_NAME=

View File

@ -1,7 +1,7 @@
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: keda-auth-aws-{{ .NAME }}
name: keda-auth-{{ .NAME }}
namespace: {{ .NAMESPACE }}
spec:
podIdentity:
@ -20,8 +20,8 @@ spec:
triggers:
- type: {{ .SCALE_TYPE }}
authenticationRef:
name: keda-auth-aws-{{ .NAME }}
name: keda-auth-{{ .NAME }}
metadata:
awsRegion: {{ .SQS_AWS_REGION }}
queueURL: {{ .PIPELINE_SQS_URL }}
queueLength: {{ .SCALE_VALUE }}
queueLength: "{{ .SCALE_VALUE }}"

View File

@ -3,7 +3,7 @@ NAMESPACE=wormscan
NAME=wormscan-tx-tracker
REPLICAS=2
MIN_REPLICAS=2
MAX_REPLICAS=6
MAX_REPLICAS=4
SCALE_TYPE=aws-sqs-queue
SCALE_VALUE=5
IMAGE_NAME=

View File

@ -1,7 +1,7 @@
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
name: keda-auth-aws-{{ .NAME }}
name: keda-auth-{{ .NAME }}
namespace: {{ .NAMESPACE }}
spec:
podIdentity:
@ -20,8 +20,8 @@ spec:
triggers:
- type: {{ .SCALE_TYPE }}
authenticationRef:
name: keda-auth-aws-{{ .NAME }}
name: keda-auth-{{ .NAME }}
metadata:
awsRegion: {{ .SQS_AWS_REGION }}
queueURL: {{ .PIPELINE_SQS_URL }}
queueLength: {{ .SCALE_VALUE }}
queueLength: "{{ .SCALE_VALUE }}"