A container simulating a connected vehicle which can be used for demo & load test purposes towards an Azure IoT Hub
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
README.md
app.js
docker-compose-v2.yml
docker-compose-v3.yml
k8s-manifest.yml
package.json

README.md

IoT Connected Vehicle Simulator

Azure Container Instances

To create a single sim inside Azure Container Instances (preview), use the Azure CLI 2.0.

az container create \
--resource-group RESOURCE_GROUP \
--name NAME \
--image kvaes/tasmaniantraders-iot-connectedvehicle \
--cpu 1 \
--memory 0.6 \
--location westeurope \
-e iothubconnectionstring='IOTHUB_CONNECTION_STRING' \
offlineMin=0 \
offlineMax=1 \
interval=15

You can check the status of the container using:

  • az container show --resource-group RESOURCE_GROUP --name NAME
  • az container logs --resource-group RESOURCE_GROUP --name NAME

Kubernetes

To deploy this sim scalable into a Kubernetes cluster (like AKS).

  • kubectl create -f k8s-manifest.yml
  • kubectl scale --replicas=1000 deployment/tt-iot-vechicle
  • kubectl get deployments