Skip to content

J0hn-B/keda_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keda: Kubernetes Event-driven Autoscaling

Demo environment, using k3d and ArgoCD, to deploy Keda and a sample application.

How to

git clone https://github.com/J0hn-B/keda_demo.git
cd ~/keda_demo
# Create a cluster with k3d, deploy argocd, deploy argocd applications and access the argocd dashboard
make apply

# Execute the publisher kubernetes job
kubectl apply -f k8s/apps/keda-demo/publisher/deploy-publisher-job.yaml

# Watch the hpa scaling
kubectl get hpa -w

# Clean up
make destroy

# Check makefile for more commands ;-)

Prerequisites

k3d, make, docker-desktop

Usage

$ make apply

Be sure to wait until the deployment has completed before continuing.

image

Access the argocd dashboard and sync the keda-demo application.

image

✅ The keda-demo application is now synced.

image

Execute the publisher kubernetes job:

kubectl apply -f k8s/apps/keda-demo/publisher/deploy-publisher-job.yaml

Watch the hpa scaling:

kubectl get hpa -w

image