Before we start working with KEDA, we need to deploy it into the cluster.
If you haven't install helm
before, you need to install it first.
# For Mac users, use Homebrew
brew install helm
# For Window users, use Chocolatey (aka choco)
choco install kubernetes-helm
# Check helm version
helm version
version.BuildInfo{Version:"v3.7.1", GitCommit:"1d11fcb5d3f3bf00dbe6fe31b8412839a96b3dc4", GitTreeState:"clean", GoVersion:"go1.16.9"}
# Add KEDA Helm repo
helm repo add kedacore https://kedacore.github.io/charts
# Update Helm repo
helm repo update
# Install KEDA Helm chart
helm install keda kedacore/keda --create-namespace --namespace keda
# Check KEDA is up and running
kubectl -n keda get po
keda-operator-5748df494c-grnsq 1/1 Running 0 7m54s
keda-operator-metrics-apiserver-cb649dd48-lsmzv 1/1 Running 0 7m54s
When you install KEDA, it creates four custom resources:
- scaledobjects.keda.sh
- scaledjobs.keda.sh
- triggerauthentications.keda.sh
- clustertriggerauthentications.keda.sh
Read more about those resources at the original documentation