KEDA の Scaledjob を AKS にデプロイしようとしています。以下のエラーが発生しています。
no matches for kind "ScaledJob" in version "keda.sh/v1alpha1"
デプロイしようとしているコードは、KEDA Web サイトから入手したものです。https://keda.sh/docs/2.0/concepts/scaling-jobs/
apiVersion: keda.sh/v1alpha1
kind: ScaledJob
metadata:
name: rabbitmq-consumer
namespace: default
spec:
jobTargetRef:
template:
spec:
containers:
- name: rabbitmq-client
image: tsuyoshiushio/rabbitmq-client:dev3
imagePullPolicy: Always
command:
[
"receive",
"amqp://user:PASSWORD@rabbitmq.default.svc.cluster.local:5672",
"job",
]
restartPolicy: Never
backoffLimit: 4
pollingInterval: 10 # Optional. Default: 30 seconds
maxReplicaCount: 30 # Optional. Default: 100
successfulJobsHistoryLimit: 3 # Optional. Default: 100. How many completed jobs should be kept.
failedJobsHistoryLimit: 2 # Optional. Default: 100. How many failed jobs should be kept.
triggers:
- type: rabbitmq
metadata:
queueName: hello
host: RabbitMqHost
queueLength: "5"