Quickstart
The following quickstart guide will walk you through installing KEDA + Kedify in a k3d Kubernetes cluster and deploying a sample application to demonstrate how Kedify scales an application using HTTP requests.
Prerequisites
-
kubectl
command line utility installed and accessible -
curl
command line utility installed and accessible - k3d installed on the machine via or or using an installation method of your choice.
Create a new k3d cluster
Create a k3d cluster with port forwarding to the cluster's load balancer.
KEDA + Kedify Installation
Let's install KEDA + Kedify on your cluster! The following three steps will walk you through the basics. Installing the Kedify Agent will automatically install KEDA.
Step 1: Install via Terminal Command
After running the command, you should see the Kedify Agent and KEDA installed in your cluster.
The Kedify Agent will be installed as the first step, then it will configure KEDA with HTTP Add-On in the same namespace and in a minute (once all images are pulled, based on your connection speed), the output should be similar to this:
Step 2: Autoscale Application
Run the following commands to deploy a sample application that responds to HTTP requests.
Confirm the application is deployed correctly.
You should see the following output:
Test the application is working correctly
We are making an HTTP request to the application to confirm it is working correctly. The request is made to the `k3d` load balancer, which is listening on port 9080, we are using the host header to route the request to the correct service.
You should see the following output:
Add ScaledObject
Run the following command to deploy a `ScaledObject` that will scale the application based on the number of HTTP requests.
Confirm the app is scaled to zero
Confirm the application has been scaled to zero and that Kedify Proxy is running correctly. The `ScaledObject` defined above tells KEDA to scale down to 0 when there is no HTTP traffic flowing to the application.
You should see the following output, app scaled to zero and Kedify Proxy up and running:
Step 3: Monitor Autoscaling
Perform another HTTP request to test that the application is correctly scaled out and responds correctly.
You should see the following output:
Confirm the application has been scaled out to handle the traffic.
You should see the following output:
By sending more requests you can see that the application is scaled out to a higher number of replicas.
Next Steps
- Review the Kedify Key Concepts
- Check out the Example AI Cluster Dashboard