How To Install or Upgrade KEDA
  • 20 Nov 2023
  • 2 Minutes to read
  • Dark
    Light

How To Install or Upgrade KEDA

  • Dark
    Light

Article summary

Background

RealTheory can notify you if KEDA is a required component in your environment that is not present on your cluster or if the version of KEDA that is installed is not in compliance with organizational standards.

Solution - Installation

If KEDA is a required component in your Kubernetes environment, it is most likely that the Helm Chart or the manifest file needed for the installation already exist. Contact your Operations or DevOps team to determine if there are company resources for installing KEDA BEFORE using either of the following procedures.

Procedure Using HELM Chart Package Manager

To install KEDA:

  1. Use the Helm Installation Guide to install Helm (if not already installed).

  2. Use the following commands to add the KEDA Helm chart repository:

    helm repo add kedacore https://kedacore.github.io/charts

    helm repo update

  3. Do one of the following:

    • To install the latest version, use the following command in the directory where you want to install KEDA:

      helm install keda kedacore/keda

    • To install a specific version, use the following command in the directory where you want to install KEDA:

      helm install keda kedacore/keda --version <version>

      where <version> is the version number of KEDA you want to install.

  4. Verify the KEDA pods are running:

    kubectl get pods -n <namespace>

    where <namespace> is the namespace where KEDA was installed.

    You should see KEDA-related pods running.

Procedure Using the YAML Manifest

To install KEDA:

  1. Download and apply the latest KEDA manifests.

    Example:

    kubectl apply -f https://github.com/kedacore/keda/releases/latest/download/keda-full.yaml

  2. Verify the KEDA pods are running:

    kubectl get pods -n <namespace>

    where <namespace> is the namespace where KEDA was installed.

    You should see KEDA-related pods running.

Solution - Upgrade

If a specific version of KEDA is required in your Kubernetes environment, it is most likely that the Helm Chart or the manifest file already exist. Contact your Operations or DevOps team to determine if there are company resources for upgrading KEDA BEFORE using either of the following procedures.

Procedure Using HELM Chart Package Manager

To upgrade KEDA:

  1. Use the Helm Installation Guide to install Helm (if not already installed).

  2. Do one of the following:

    • To upgrade to the latest version, use the following command:

      helm upgrade <release-name> kedacore/keda

      where <release-name> is the name of the KEDA release.

    • To upgrade to a specific version, use the following command:

      helm upgrade <release-name> kedacore/keda --version <version>

      where <release-name> is the name of the KEDA release and <version> is the version number of KEDA you want to upgrade to.

  3. Verify the KEDA pods are running and have been updated:

    kubectl get pods -n <namespace>

    where <namespace> is the namespace where KEDA is installed.

    You should see KEDA-related pods running.

Procedure Using YAML Manifest

To upgrade KEDA:

  1. Apply the appropriate manifests:

    kubectl apply -f https://github.com/kedacore/keda/releases/download/<version>/keda-full.yaml

    where <version> is the version number of KEDA you want to upgrade to.

  2. Verify the KEDA pods are running and have been updated:

    kubectl get pods -n <namespace>

    where <namespace> is the namespace where KEDA is installed.

    You should see KEDA-related pods running.


Was this article helpful?