iotsuite-cli
Version:
Command Line Interface for deploying pre-configured IoT solutions through Azure
46 lines • 1.07 kB
YAML
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: device-simulation
spec:
replicas: 1
minReadySeconds: 10
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
template:
metadata:
labels:
app: device-simulation
spec:
containers:
- name: device-simulation-pod
image: azureiotpcs/device-simulation-dotnet:latest
ports:
- containerPort: 9003
env:
- name: PCS_IOTHUB_CONNSTRING
valueFrom:
configMapKeyRef:
name: deployment-configmap
key: iothub.connstring
- name: PCS_STORAGEADAPTER_WEBSERVICE_URL
valueFrom:
configMapKeyRef:
name: deployment-configmap
key: storageadapter.webservice.url
apiVersion: v1
kind: Service
metadata:
name: device-simulation-svc
labels:
app: device-simulation
spec:
type: NodePort
ports:
- port: 9003
selector:
app: device-simulation