kubectl config set current-context aksmqCluster
kubectl config set current-context aksKedaCluster
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"
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
.\deleteRG.ps1 `
-resourceGroupName "rabbitmq-rg"
.\deleteRG.ps1 `
-resourceGroupName "kedaResourceGroup"
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
$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/"