Şöyle yaparız
Açıklaması şöyleapiVersion: keda.sh/v1alpha1kind: ScaledObjectmetadata:name: reactive-springboot-app-scalernamespace: defaultspec:scaleTargetRef:name: reactive-springboot-apptriggers:- type: rabbitmqmetadata:queueName: orderQueuehost: RabbitMQ_HOSTqueueLength: "5"
KEDA will monitor the queue, and once the queue length exceeds the threshold (5 messages), KEDA will scale the Spring Boot application. You can check the scaling activity with:kubectl get hpaThis command will show the scaling activity based on the queue length.