Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j0hn-b/keda_demo
Demo application scaling via KEDA
https://github.com/j0hn-b/keda_demo
argocd autoscaler demo gitops k3d keda kubernetes
Last synced: about 1 month ago
JSON representation
Demo application scaling via KEDA
- Host: GitHub
- URL: https://github.com/j0hn-b/keda_demo
- Owner: J0hn-B
- Created: 2022-01-04T18:07:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-10T21:29:51.000Z (almost 3 years ago)
- Last Synced: 2023-03-05T07:20:00.686Z (almost 2 years ago)
- Topics: argocd, autoscaler, demo, gitops, k3d, keda, kubernetes
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Keda: Kubernetes Event-driven Autoscaling
Demo environment, using k3d and ArgoCD, to deploy [Keda](https://keda.sh/) and a [sample application](https://github.com/kedacore/sample-go-rabbitmq/).
## How to
```bash
git clone https://github.com/J0hn-B/keda_demo.git
``````bash
cd ~/keda_demo
``````bash
# 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](https://user-images.githubusercontent.com/40946247/148085440-066e0ae1-9b1a-4c18-bb3a-d95b1f72c025.png)
Access the [argocd dashboard](https://localhost:8080) and **sync the keda-demo application.**
![image](https://user-images.githubusercontent.com/40946247/148085152-89d77c41-8e39-410b-be1a-6dcf9f4a565c.png)
✅ The keda-demo application is now synced.
![image](https://user-images.githubusercontent.com/40946247/148085339-896a1a87-1ae2-4704-b653-a77fe12760db.png)
**Execute the publisher kubernetes job:**
```bash
kubectl apply -f k8s/apps/keda-demo/publisher/deploy-publisher-job.yaml
```**Watch the hpa scaling:**
```bash
kubectl get hpa -w
```![image](https://user-images.githubusercontent.com/40946247/148084929-41f32499-ac6a-4f7a-ad98-94c900d2c939.png)