Learn how to install the Keda module locally (on k3d) or on your remote cluster.
- Access to a Kubernetes (v1.24 or higher) cluster
- Go
- Docker
- kubectl
- kubebuilder
You can build and run the Keda Manager in the Kubernetes cluster without Kyma. For the day-to-day development on your machine, you don't always need to have it controlled by Kyma's Lifecycle Manager.
Run the following commands to deploy Keda Manager in a target Kubernetes cluster, such as k3d:
-
Clone the project.
git clone https://github.com/kyma-project/keda-manager.git && cd keda-manager/
-
Set the Keda Manager image name.
NOTE: You can use the local k3d registry or your Docker Hub account to push intermediate images.
export IMG=<DOCKER_USERNAME>/custom-keda-manager:0.0.2
-
Verify the compatibility.
make test
-
Build and push the image to the registry.
make module-image
-
Create a target namespace.
kubectl create ns kyma-system
-
Deploy Keda Manager.
make deploy
-
Verify if Keda Manager is deployed.
kubectl get deployments -n kyma-system
You should get a result similar to this example:
NAME READY UP-TO-DATE AVAILABLE AGE keda-manager 1/1 1 1 1m
When using a local k3d cluster, you can also use the local OCI image registry that comes with it. Thanks to that, you don't need to push the Keda module images to a remote registry and you can test the changes in the Kyma installation set up entirely on your machine.
-
Clone the project.
git clone https://github.com/kyma-project/keda-manager.git && cd keda-manager/
-
Build the manager locally and run it in the k3d cluster.
make -C hack/local run
-
If you want to clean up the k3d cluster, use the
make -C hack/local stop
make target.