Skip to content

Latest commit

 

History

History
76 lines (55 loc) · 1.54 KB

README.md

File metadata and controls

76 lines (55 loc) · 1.54 KB

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