Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
106 lines (105 sloc) 2.31 KB
apiVersion: apps/v1
kind: Deployment
metadata:
name: tempsensor-asa
spec:
replicas: 2
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 100%
selector:
matchLabels:
app: tempsensor-asa
template:
metadata:
name: tempsensor-asa
labels:
app: tempsensor-asa
annotations:
isEdgeDeployment: "true"
targetCondition: "tags.location.building='mobile' AND tags.environment='test'"
priority: "15"
loggingOptions: ""
spec:
containers:
- name: tempsensor
image: mcr.microsoft.com/azureiotedge-simulated-temperature-sensor:1.0
- name: streamanalytics
image: mcr.microsoft.com/azure-stream-analytics/azureiotedge:1.0.0
terminationGracePeriodSeconds: 0
nodeSelector:
type: virtual-kubelet
tolerations:
- key: virtual-kubelet.io/provider
operator: Equal
value: iotedge
effect: NoSchedule
---
apiVersion: v1
kind: ConfigMap
metadata:
name: edgeagent
data:
desiredProperties: |
{
"systemModules": {
"edgeHub": {
"env": {
"OptimizeForPerformance": {
"value": "false"
}
}
}
}
}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: edgehub
data:
desiredProperties: |
{
"routes": {
"alertsToCloud": "FROM /messages/modules/streamanalytics/* INTO $upstream",
"alertsToReset": "FROM /messages/modules/streamanalytics/* INTO BrokeredEndpoint(\"/modules/tempsensor/inputs/control\")",
"telemetryToAsa": "FROM /messages/modules/tempsensor/* INTO BrokeredEndpoint(\"/modules/streamanalytics/inputs/temperature\")"
},
"storeAndForwardConfiguration": {
"timeToLiveSecs": 7200
}
}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: tempsensor
data:
status: running
restartPolicy: always
version: "1.0"
createOptions: |
{}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: streamanalytics
data:
status: running
restartPolicy: always
version: "1.0"
createOptions: |
{
"Env": [
"PlanId=REDACTED"
]
}
desiredProperties: |
{
"ASAJobInfo": "REDACTED",
"ASAJobResourceId": "REDACTED",
"ASAJobEtag": "REDACTED",
"PublishTimestamp": "12/11/2018 9:00:57 AM"
}