Skip to content

Showcasing the usage of the KEDA HTTP add on to scale down a k8s deployment to zero.

Notifications You must be signed in to change notification settings

ocindev/keda-http-add-on-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

KEDA HTTP addon scale down to zero example

This repository showcases the usage of KEDA and KEDA HTTP addon to scale down a deployment to zero based on the HTTP traffic.

Requirements:

Steps

Start minikube

minikube start

Enable nginx ingress addon

minikube addons enable ingress

Install KEDA

1. Add KEDA helm repository

helm repo add kedacore https://kedacore.github.io/charts

2. Update Helm repo

helm repo update

3. Install KEDA chart

helm install keda kedacore/keda --namespace keda --create-namespace

Install KEDA HTTP addon

1. Install HTTP addon chart to the app namespace

helm install http-add-on kedacore/keda-add-ons-http --namespace keda

Create sample nginx deployment

1. Install sample nginx helm chart

helm upgrade --install --create-namespace --namespace keda-http-example keda-http-example keda-http-example/ --values keda-http-example/values.yaml

Test autoscaling

1. Add keda-http-example to /etc/hosts

127.0.0.1 keda-example.local

2. Start minikube tunnel

minikube tunnel

3. Watch the pods in keda-http-example namespace

watch -n 1 kubectl -n keda-http-example get pods

4. Send HTTP request to keda-example deployment

curl keda-example.local

About

Showcasing the usage of the KEDA HTTP add on to scale down a k8s deployment to zero.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages