Hacking on the KEDA project 👩‍💻

cd $GOPATHgit clone https://github.com/kedacore/keda
git clone https://github.com/kedacore/chart
helm uninstall -n keda keda
kubectl get pods -n keda
cd $GOPATH/src/github.com/kedacore/keda
//change accordingly using another registry such as quay.io
export IMAGE_REGISTRY=docker.io
//use tag of your choice
export IMAGE_TAG=latest
//use a docker repo of your choice
export IMAGE_REPO=abhirockzz
eval $(minikube docker-env)
export IMAGE_PULL_POLICY=Never
make build
make publish
export $IMAGE_PULL_POLICY=Always
cd ../charts/kedahelm install keda kedacore/keda --set image.keda=$IMAGE_REGISTRY/$IMAGE_REPO/keda:$IMAGE_TAG,image.pullPolicy=$IMAGE_PULL_POLICY --namespace keda
kubectl get pods -n keda -w
kubectl logs -f <keda_pod_name> -c keda-operator -n keda

Troubleshooting

Error: uninstallation completed with 1 error(s): could not get apiVersions from Kubernetes: could not get apiVersions from Kubernetes: unable to retrieve the complete list of server APIs: external.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
kubectl delete apiservice v1beta1.external.metrics.k8s.io
manifest_sorter.go:175: info: skipping unknown hook: "crd-install"
manifest_sorter.go:175: info: skipping unknown hook: "crd-install"
Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: kind: Service, namespace: keda, name: keda-operator
kubectl delete deployment keda-operator -n keda
kubectl delete serviceaccount keda-operator -n keda
kubectl delete clusterrole keda-operator-external-metrics-reader
kubectl delete clusterrole keda-operator
kubectl delete clusterrolebinding keda-operator-hpa-controller-external-metrics
kubectl delete clusterrolebinding keda-operator
kubectl delete clusterrolebinding keda-operator:system:auth-delegator
kubectl delete rolebinding keda-operator-auth-reader -n kube-system
kubectl delete service keda-operator -n keda

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

Love podcasts or audiobooks? Learn on the go with our new app.

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

Abhishek Gupta

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

More from Medium

Build and run microservices with Kubernetes, Helm and Skaffold locally

How to deploy Keycloak with Postgres on GKE

Kafka on GCP Cluster

What is Kubernetes?