Skip to content

Latest commit

 

History

History
131 lines (72 loc) · 2.35 KB

groundlabs-keda-demo.md

File metadata and controls

131 lines (72 loc) · 2.35 KB

Ground Labs KEDA Demo

Switch context between Kubernetes clusters

kubectl config set current-context aksmqCluster

kubectl config set current-context aksKedaCluster

Demo 1 - Azure Functions with Virtual Node

Provision AKS cluster named rabbitmqCluster

Run the [initializeAKS](https://github.com/NileshGule/sample-dotnet-core-rabbitmq-keda/blob/master/Powershell/initializeAKS.ps1) Powershell script to provision AKS Cluster

.\initializeAKS.ps1
.\browseAKS.ps1 `
-resourceGroupName "kedaResourceGroup" `
-clusterName "aksKedaCluster"

Demo 2 - RabbitMQ consumer

Provision AKS cluster named rabbitmqCluster

Run the [initializeAKS](Powershell\initializeAKS.ps1) Powershell script to provision AKS Cluster

.\initializeAKS.ps1 `
-resourceGroupName "rabbitmq-rg" `
-clusterName "rabbitmqCluster"

Deploy RabbitMQ using [deployRabbitMQ.ps1](Powershell\deployRabbitMQ.ps1) Powershell script

.\deployRabbitMQ.ps1

Deploy TechTalks using [deployTechTalks-AKS.ps1](Powershell\deployTechTalks-AKS.ps1) Powershell script

.\deployTechTalks-AKS.ps1

Browse Kubernetes dashboard

.\browseAKS.ps1 `
-resourceGroupName "rabbitmq-rg" `
-clusterName "rabbitmqCluster"

Port forward to RabbitMQ Management UI

kubectl port-forward svc/rabbitmq 15672:15672

Delete AKS cluster

.\deleteRG.ps1 `
-resourceGroupName "rabbitmq-rg"

.\deleteRG.ps1 `
-resourceGroupName "kedaResourceGroup"

Install Helm

Note: Helm 2.14 version has problems creating the Custom Resource Definition for KEDA related objects. Install the stable version of Helm 2.13.1

choco install kubernetes-helm --version 2.13.1

Backup incase of firewall restriction with POST requests

$postParams = @{
 "Id"="1"
} | ConvertTo-Json

Invoke-WebRequest -Uri http://104.215.188.111:8080/api/TechTalks -Method POST -ContentType "application/json" -Body $postParams

To Access the RabbitMQ AMQP port:

kubectl port-forward --namespace default svc/rabbitmq 5672:5672
echo "URL : amqp://127.0.0.1:5672/"

To Access the RabbitMQ Management interface:

kubectl port-forward --namespace default svc/rabbitmq 15672:15672
echo "URL : http://127.0.0.1:15672/"