Skip to content

Commit b10e204

Browse files
azure IoT nested edge deployment template (#2)
1 parent 1fc8361 commit b10e204

4 files changed

+180
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"modulesContent": {
3+
"$edgeAgent": {
4+
"properties.desired": {
5+
"modules": {},
6+
"runtime": {
7+
"settings": {
8+
"minDockerVersion": "v1.25"
9+
},
10+
"type": "docker"
11+
},
12+
"schemaVersion": "1.1",
13+
"systemModules": {
14+
"edgeAgent": {
15+
"settings": {
16+
"image": "$upstream:443/azureiotedge-agent:1.2",
17+
"createOptions": ""
18+
},
19+
"type": "docker"
20+
},
21+
"edgeHub": {
22+
"settings": {
23+
"image": "$upstream:443/azureiotedge-hub:1.2",
24+
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"5671/tcp\":[{\"HostPort\":\"5671\"}],\"8883/tcp\":[{\"HostPort\":\"8883\"}]}}}"
25+
},
26+
"type": "docker",
27+
"env": {
28+
},
29+
"status": "running",
30+
"restartPolicy": "always"
31+
}
32+
}
33+
}
34+
},
35+
"$edgeHub": {
36+
"properties.desired": {
37+
"routes": {
38+
"route": "FROM /messages/* INTO $upstream"
39+
},
40+
"schemaVersion": "1.1",
41+
"storeAndForwardConfiguration": {
42+
"timeToLiveSecs": 7200
43+
}
44+
}
45+
}
46+
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"modulesContent": {
3+
"$edgeAgent": {
4+
"properties.desired": {
5+
"modules": {
6+
"registry": {
7+
"settings": {
8+
"image": "registry:latest",
9+
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"5000/tcp\":[{\"HostPort\":\"5000\"}]}}}"
10+
},
11+
"type": "docker",
12+
"version": "1.0",
13+
"env": {
14+
"REGISTRY_PROXY_REMOTEURL": {
15+
"value": "https://mcr.microsoft.com"
16+
}
17+
},
18+
"status": "running",
19+
"restartPolicy": "always"
20+
},
21+
"IoTEdgeAPIProxy": {
22+
"settings": {
23+
"image": "mcr.microsoft.com/azureiotedge-api-proxy:1.1",
24+
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"443/tcp\":[{\"HostPort\":\"443\"}]}}}"
25+
},
26+
"type": "docker",
27+
"version": "1.1",
28+
"env": {
29+
"NGINX_DEFAULT_PORT": {
30+
"value": "443"
31+
},
32+
"DOCKER_REQUEST_ROUTE_ADDRESS": {
33+
"value": "registry:5000"
34+
},
35+
"BLOB_UPLOAD_ROUTE_ADDRESS": {
36+
"value": "AzureBlobStorageonIoTEdge:11002"
37+
}
38+
},
39+
"status": "running",
40+
"restartPolicy": "always"
41+
}
42+
},
43+
"runtime": {
44+
"settings": {
45+
"minDockerVersion": "v1.25"
46+
},
47+
"type": "docker"
48+
},
49+
"schemaVersion": "1.1",
50+
"systemModules": {
51+
"edgeAgent": {
52+
"settings": {
53+
"image": "mcr.microsoft.com/azureiotedge-agent:1.2",
54+
"createOptions": ""
55+
},
56+
"type": "docker"
57+
},
58+
"edgeHub": {
59+
"settings": {
60+
"image": "mcr.microsoft.com/azureiotedge-hub:1.2",
61+
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"5671/tcp\":[{\"HostPort\":\"5671\"}],\"8883/tcp\":[{\"HostPort\":\"8883\"}]}}}"
62+
},
63+
"type": "docker",
64+
"env": {
65+
},
66+
"status": "running",
67+
"restartPolicy": "always"
68+
}
69+
}
70+
}
71+
},
72+
"$edgeHub": {
73+
"properties.desired": {
74+
"routes": {
75+
"route": "FROM /messages/* INTO $upstream"
76+
},
77+
"schemaVersion": "1.1",
78+
"storeAndForwardConfiguration": {
79+
"timeToLiveSecs": 7200
80+
}
81+
}
82+
},
83+
"registry": {
84+
"properties.desired": {}
85+
},
86+
"IoTEdgeAPIProxy": {
87+
"properties.desired": {}
88+
}
89+
}
90+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"modulesContent": {
3+
"$edgeAgent": {
4+
"properties.desired.modules.IoTEdgeAPIProxy": {
5+
"settings": {
6+
"image": "$upstream:443/azureiotedge-api-proxy:1.1",
7+
"createOptions": "{\"HostConfig\":{\"PortBindings\":{\"443/tcp\":[{\"HostPort\":\"443\"}]}}}"
8+
},
9+
"type": "docker",
10+
"version": "1.1",
11+
"env": {
12+
"NGINX_DEFAULT_PORT": {
13+
"value": "443"
14+
}
15+
},
16+
"status": "running",
17+
"restartPolicy": "always"
18+
}
19+
},
20+
"IoTEdgeAPIProxy": {
21+
"properties.desired": {}
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"modulesContent": {
3+
"$edgeAgent": {
4+
"properties.desired.modules.SimulatedTemperatureSensor": {
5+
"settings": {
6+
"image": "$upstream:443/azureiotedge-simulated-temperature-sensor:1.0",
7+
"createOptions": ""
8+
},
9+
"type": "docker",
10+
"version": "1.0",
11+
"status": "running",
12+
"restartPolicy": "always"
13+
}
14+
},
15+
"$edgeHub": {
16+
"properties.desired.routes.SimulatedTemperatureSensorToIoTHub": "FROM /messages/modules/SimulatedTemperatureSensor/* INTO $upstream"
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)