- home page
- Concepts
- ScaledObject reference
- Kubernetes Compatibility
- Cluster Capacity
- KEDA Metrics Server
KEDA manages the HorizontalPodAutoscaler (HPA) behind the scenes
ScaledObjectsrepresent the desired mapping between an event source (e.g. Rabbit MQ) and the Kubernetes Deployment, StatefulSet or any Custom Resource that defines /scale subresource.ScaledJobsrepresent the mapping between event source and Kubernetes Job.TriggerAuthenticationorClusterTriggerAuthenticationwhich contains the authentication configuration or secrets to monitor the event source.
helm repo add kedacore https://kedacore.github.io/charts
helm repo update
helm install keda kedacore/keda \
--namespace keda --create-namespace \
--version 2.15.1- Remove any ScaledObjects and ScaledJobs that you have created
- Uninstall helm chart
kubectl apply -f examples/cron/cron.yml
kubectl get deployments.app
kubectl get scaledobjects.keda.sh after time reaches
kubectl get deployments.apps# Installation with manifest
kubectl apply -f https://github.com/rabbitmq/cluster-operator/releases/latest/download/cluster-operator.yml
# Installation using kubectl-rabbitmq plugin
kubectl krew install rabbitmq
kubectl rabbitmq install-cluster-operator
# Installation using Helm chart
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install rabbitmq-cluster-operator bitnami/rabbitmq-cluster-operatordeploy simple cluster with rabbitmq.yml
# install RabbitMQ Cluster with operator
kubectl apply -f scalers/rabbitmq/rabbitmq.yamlgo to UI: http://rabbitmq-192.168.0.100.nip.io
- user: admin
- password: admin
Create ScaledObject
kubectl apply -f examples/rabbitmq/scale/scaledobject.yamlCreate ScaledJob
kubectl apply -f examples/rabbitmq/scale/scaledjob.yamldeploy publisher now and see result
# check scaled deployment
kubectl apply -f examples/rabbitmq/publisher.yaml
kubectl get pods
# check hpa info
kubectl get hpa
kubectl get hpa keda-hpa-keda-cron-nginx -o yaml
# check scaled jobs
kubectl get scaledjobs.keda.sh,jobs