Installing KEDA
TOC
Prerequisites
KEDA is a tool that helps Kubernetes scale applications based on real-world events. With KEDA, you can adjust the size of your containers automatically, depending on the workload—like the number of messages in a queue or incoming requests.
- Download the KEDA installation package from Alauda Cloud.
- Upload the installation package using the Upload Packages mechanism.
Upload Packages: Administrator > Marketplace > Upload Packages page. Click Help Document on the right to get instructions on how to publish the operator to cluster. For more details, please refer to CLI.
Installing via Command Line
Installing KEDA Operator
Create namespace for KEDA operator if it does not exist:
Run the following command to install KEDA Operator in your target cluster:
Configuration Parameters:
Creating the KedaController instance
Create KedaController resource named keda in namespace keda:
Installing via Web Console
Installing KEDA Operator
- Log in, and navigate to the Administrator page.
- Click Marketplace > OperatorHub.
- Find the KEDA operator, click Install, and enter the Install page.
Configuration Parameters:
- On the Install page, select default configuration, click Install, and complete the installation of the KEDA Operator.
Creating the KedaController instance
-
Click on Marketplace > OperatorHub.
-
Find the installed KEDA operator, navigate to All Instances.
-
Click Create Instance button, and click KedaController card in the resource area.
-
On the parameter configuration page for the instance, you may use the default configuration unless there are specific requirements.
-
Click Create.
Verification
After the instance is successfully created, wait approximately 20 minutes, then checking if the KEDA components is already running with the command:
Additional Scenarios
Integrating ACP Log Collector
- Ensure ACP Log Collector Plugin is installed in target cluster. Refer to Install Alauda Container Platform Log Collector Plugin。.
- Enable the Platform logging switch when installing the ACP Log Collector Plugin.
- Use the following command to add label to the keda namespace:
Uninstalling KEDA Operator
Removing the KedaController instance
Uninstalling KEDA Operator via CLI
Uninstalling KEDA Operator via Web Console
To uninstall KEDA Operator, click on Marketplace > OperatorHub, select installed operator KEDA, and click Uninstall.