Public | Automated Build

Last pushed: 22 days ago
Short Description
A small container that can be used to demo a connected vehicle via Azure IoT Hub
Full Description

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
Docker Pull Command
Owner
kvaes