25 Mayıs 2025 Pazar

KEDA - Kubernetes Event-Driven Autoscaling

Örnek
Şöyle yaparız
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: reactive-springboot-app-scaler
  namespace: default
spec:
  scaleTargetRef:
    name: reactive-springboot-app
  triggers:
    - type: rabbitmq
      metadata:
        queueName: orderQueue
        host: RabbitMQ_HOST
        queueLength: "5"
Açıklaması şöyle
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 hpa
This command will show the scaling activity based on the queue length.

KEDA - Kubernetes Event-Driven Autoscaling

Örnek Şöyle yaparız apiVersion: keda.sh/v1alpha1 kind: ScaledObject metadata:   name: reactive-springboot-app-scaler   namespace: default sp...