Installing KEDA for OpenShift Container Platform

Learn how to install the Kubernetes Event-driven Autoscaling (KEDA) on a Redhat Openshift Container Platform cluster using Helm.

KEDA can be installed on any Kubernetes cluster and helps to scale up or scale down the container to ensure resources are available for the workload.
  1. Log in to the Cloudera Management Console and go to Environments > Compute Cluster.
  2. In the Compute Cluster tab, click Actions > Download Kubernetes Configuration to download the kubeconfig.txt file to your system.
  3. Set the KUBECONFIG environment variable to the path of the downloaded file.
    export KUBECONFIG=[***kubeconfig.txt file path***]
  4. Add the KEDA Helm repository and update the Helm repository to fetch the latest chart information.
    helm repo add kedacore https://kedacore.github.io/charts
    heml repo update
  5. Create a dedicated namespace for KEDA. If the keda namespace does not already exist, create the namespace and add the label, monitoring-platform-access=true.
    kubectl create namespace keda
    kubectl label namespace keda monitoring-platform-access=true
  6. Install KEDA by specifying the required version, for example, 2.17.2, and the namespace that you created in the previous step.
    helm install keda kedacore/keda --version 2.17.2 --namespace keda
    The command deploys KEDA and its associated resources, including Custom Resource Definitions (CRDs), into the Kubernetes cluster under the keda namespace.
  7. Check the keda namespace for running pods to verify a successful deployment.
    kubectl get pods -n keda