Skip to content

alyvusal/keda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

KEDA

KEDA manages the HorizontalPodAutoscaler (HPA) behind the scenes

  • ScaledObjects represent the desired mapping between an event source (e.g. Rabbit MQ) and the Kubernetes Deployment, StatefulSet or any Custom Resource that defines /scale subresource.
  • ScaledJobs represent the mapping between event source and Kubernetes Job.
  • TriggerAuthentication or ClusterTriggerAuthentication which contains the authentication configuration or secrets to monitor the event source.

Install

doc

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
  1. Remove any ScaledObjects and ScaledJobs that you have created
  2. Uninstall helm chart

Authentication

doc

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-operator

deploy simple cluster with rabbitmq.yml

# install RabbitMQ Cluster with operator
kubectl apply -f scalers/rabbitmq/rabbitmq.yaml

go to UI: http://rabbitmq-192.168.0.100.nip.io

  • user: admin
  • password: admin

Create ScaledObject

kubectl apply -f examples/rabbitmq/scale/scaledobject.yaml

Create ScaledJob

kubectl apply -f examples/rabbitmq/scale/scaledjob.yaml

deploy 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors