~tomleb/keda-constant-scaler

Constant external scaler for KEDA
Update README
Add README, deployment files and an example

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~tomleb/keda-constant-scaler
read/write
git@git.sr.ht:~tomleb/keda-constant-scaler

You can also use your local clone with git send-email.

#KEDA Constant Scaler

This is a KEDA external scaler to scale to a constant number of replicas.

But.. why? Indeed, a scaler that does not automatically scale is not very useful. This repository acts as an example on how to build external scalers before going to more complex ones.

builds.sr.ht status

#Build

make build

If you want to build the container image, you can use the image-build target. Look at the Makefile for details.

make image-build

#Deployment

First, create the namespace keda-constant-scaler.

kubectl create namespace keda-constant-scaler

Then, we deploy the keda-constant-scaler using kustomize.

git clone https://git.sr.ht/~tomleb/keda-constant-scaler
cd keda-constant-scaler/
kustomize build deployment/ | oc apply -n keda-constant-scaler -f -

#Example

You can find an example in the examples directory.

Once keda-constant-scaler is deploy, you can run the example with the following commands.

kubectl create namespace example

kustomize build examples/ | oc apply -n example -f -

You should then see 3 replicas running after a few seconds.

#License

See LICENSE.