Hacking on the KEDA project 👩‍💻

If you’re planning to work on the KEDA project(Kubernetes Event-driven Autoscaling), you can the following steps for local development.

From the docs: “KEDA is a Kubernetes-based Event Driven Autoscaler. With KEDA, you can drive the scaling of any container in Kubernetes based on the number of events needing to be processed. KEDA is a single-purpose and lightweight component that can be added into any Kubernetes cluster. KEDA works alongside standard Kubernetes components like the horizontal pod autoscaler and can extend functionality without overwriting or duplication”

Switch to $GOPATH and clone required KEDA projects

Make required code changes for your feature/bug etc.

If you have an existing installation (this will just delete the KEDA operator Deployment)

see Troubleshooting (at the end) section for a possible issue

Confirm that there are no KEDA Pods

Switch to keda source directory

Set environment variables

If you’re using minikube for local Kubernetes dev, doing this will allow you to iterate faster since it will build the Docker images on the minikube host and you won't need to push it to an external Docker repo

If you want to use an external docker repo

publish will build and docker push

Once build is complete, install KEDA using Helm

I used Helm 3, but Helm 2 is also supported

This will use the Docker image which you just built (with the code changes)

Confirm all is good (wait till status is Running)

To check KEDA operator container logs

Troubleshooting

helm uninstall -n keda keda might return this

To resolve

see https://github.com/helm/helm/issues/6361#issuecomment-538220109

Further, if helm install gives you this error

Delete stuff manually

Happy hacking! 👩‍💻👨‍💻

--

--

Principal Developer Advocate at AWS | I ❤️ Databases, Go, Kubernetes

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhishek Gupta

Principal Developer Advocate at AWS | I ❤️ Databases, Go, Kubernetes