Azure Kubernetes Service (AKS) with Kubernetes Event-Driven Autoscaling (KEDA)

  • Install KEDA on AKS cluster. This section would provide clear guidance on how to install it via HELM, but you could also choose to install this via YAML files.
  • To test the event-driven mechanism, it could be Azure Storage — Queue, Azure Service Bus or any other supported scalers. Click on the links to go through the service creation process. The screenshots below are the places you could get the required information when setting up KEDA solutions.
  • KEDA GitHub provides examples written in different languages, but I have only make the ones written in Go work so far.
# install RabbitMQ with HELM chart
helm install rabbitmq --set auth.username=user --set auth.password=PASSWORD bitnami/rabbitmq
# Deploy the essential components (secret,triggerAuthentication etc.) of RabbitMQ consumer
kubectl apply -f deploy/deploy-consumer.yaml
kubectl apply -f deploy/deploy-publisher-job.yaml
# to generate base64-encoded value ("-w 0" is to not have any next line or space after the value is generated)
echo -n "value" | baste64 -w 0
# make sure the path to Go executable is added in the default system environment path.
export PATH=$PATH:/usr/local/go/bin
# make sure to refresh user profile
source $HOME/.profile
# check whether this command works
go version
go run cmd/send/send.go <number of messages you would like to send)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jonathan

Jonathan

186 Followers

Learning new things about Kubernetes every day. Hopefully, the learning notes could help people on the same journey!