Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.97 KB

File metadata and controls

61 lines (42 loc) · 1.97 KB

lab-08 - deploy Kubernetes Event-driven Autoscaling KEDA

Before we start working with KEDA, we need to deploy it into the cluster.

Task #1 - install helm

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"}

Task #2 - install KEDA

# 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

Useful links

Next: use KEDA to autoscale application processing Azure Service Bus Queue

Go to lab-09