-
Notifications
You must be signed in to change notification settings - Fork 9
/
elastestservice.json
executable file
·125 lines (125 loc) · 9.16 KB
/
elastestservice.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"register": {
"description": "this is a test service for ElasTest Device Emulator Service",
"id": "fe5e0531-b470-441f-9c69-721c2b4875f2",
"name": "EDS",
"short_name": "EDS",
"bindable": false,
"plan_updateable": false,
"plans": [
{
"bindable": false,
"description": "plan for testing",
"free": true,
"id": "94a1a0c7-21a0-42e3-abcd-f75f337b47c5",
"metadata": {
"bullets": "basic plan",
"costs": {
"description": "cost model for eds",
"currency": "eur",
"model": "pay-as-you-go",
"model_param": {
"setup_cost": 10.0
},
"meter_list": [
{
"meter_name": "iot_device",
"meter_type": "gauge",
"unit_cost": 1.25,
"unit": "instance-hour"
},
{
"meter_name": "gw_msg_rx",
"meter_type": "cumulative",
"unit_cost": 0.0125,
"unit": "kb"
}
]
}
},
"name": "testing plan"
}
],
"requires": [],
"tags": [
"test",
"tester"
]
},
"manifests": [
{
"id": "b1c59b9c-5c7d-48c3-bb40-2c4c2cdd57c7",
"manifest_content": "version: '2.1'\nservices:\n frontend:\n image: elastest/eds-frontend:latest\n environment:\n - ci_env=`bash <(curl -s https://codecov.io/env)`\n expose:\n - 4000\n - 6065\n - 8000\n networks:\n - elastest_elastest\n\n memsipe:\n image: elastest/eds-memsipe:latest\n environment:\n - ci_env=`bash <(curl -s https://codecov.io/env)`\n expose:\n - 5050\n - 8000\n links:\n - frontend\n networks:\n - elastest_elastest\n\n rest_app:\n image: elastest/eds-api:latest\n environment:\n - ci_env=`bash <(curl -s https://codecov.io/env)`\n expose:\n - 8080\n - 9090\n links:\n - frontend\n networks:\n - elastest_elastest\n\n eds-base:\n image: elastest/eds-base:latest\n expose:\n - 8000\n networks:\n - elastest_elastest\n\nnetworks:\n elastest_elastest:\n external: true\n",
"manifest_type": "docker-compose",
"plan_id": "94a1a0c7-21a0-42e3-abcd-f75f337b47c5",
"service_id": "fe5e0531-b470-441f-9c69-721c2b4875f2",
"endpoints": {
"frontend": {
"description": "Service to show emulated sensor data in the form of plots as well as to actuate sensors",
"main": true,
"api": {
"name": "memsipe",
"protocol": "http",
"port": 8000,
"path": "/onem2m/MemsIPE/sensor_data/"
}
},
"rest_app": {
"description": "Service to emulate mems data",
"main": false,
"api": {
"protocol": "http",
"port": 9090,
"path": "/health"
}
},
"eds-base": {
"description": "Demonstrator application",
"main": false,
"api": {
"protocol": "http",
"port": 8000,
"path": "/onem2m/"
}
}
}
},
{
"id": "b1c59b9c-5c7d-48c3-bb40-2c4c2cdd57c7",
"manifest_content": "apiVersion: v1\nkind: Service\nmetadata:\n creationTimestamp: null\n labels:\n io.elastest.service: frontend\n elastest-component: eds\n name: frontend\nspec:\n ports:\n - name: \"frontend-8000\"\n port: 8000\n targetPort: 8000 \n selector:\n io.elastest.tjob.tss.id: frontend\n type: NodePort\nstatus:\n loadBalancer: {}\n---\napiVersion: v1\nkind: Service\nmetadata:\n creationTimestamp: null\n labels:\n io.elastest.service: rest-app\n elastest-component: eds\n name: rest-app\nspec:\n ports:\n - name: \"rest-app-9090\"\n port: 9090\n targetPort: 9090 \n selector:\n io.elastest.tjob.tss.id: rest-app\n type: NodePort\nstatus:\n loadBalancer: {}\n---\napiVersion: v1\nkind: Service\nmetadata:\n creationTimestamp: null\n labels:\n io.elastest.service: eds-base\n elastest-component: eds\n name: eds-base\nspec:\n ports:\n - name: \"eds-base-8000\"\n port: 8000\n targetPort: 8000 \n selector:\n io.elastest.tjob.tss.id: eds-base\n type: NodePort\nstatus:\n loadBalancer: {}\n---\napiVersion: extensions/v1beta1\nkind: Deployment\nmetadata:\n creationTimestamp: null\n labels:\n io.elastest.service.type: tss\n name: frontend\nspec:\n replicas: 1\n strategy: {}\n template:\n metadata:\n creationTimestamp: null\n labels:\n io.elastest.type: tss\n io.elastest.tjob.tss.id: frontend\n io.elastest.tjob.tss.type: main\n elastest-component-type: tss\n elastest-component: frontend\n spec:\n containers:\n - env:\n - name: ci_env\n value: '`bash <(curl -s https://codecov.io/env)`'\n image: elastest/eds-frontend:latest\n name: frontend\n resources: {}\n imagePullPolicy: Always\n restartPolicy: Always\nstatus: {}\n---\napiVersion: extensions/v1beta1\nkind: Deployment\nmetadata:\n creationTimestamp: null\n labels:\n io.elastest.service.type: tss\n name: memsipe\nspec:\n replicas: 1\n strategy: {}\n template:\n metadata:\n creationTimestamp: null\n labels:\n io.elastest.type: tss\n io.elastest.tjob.tss.id: memsipe\n io.elastest.tjob.tss.type: \"false\"\n elastest-component-type: tss\n elastest-component: memsipe\n spec:\n containers:\n - env:\n - name: ci_env\n value: '`bash <(curl -s https://codecov.io/env)`'\n image: elastest/eds-memsipe:latest\n name: memsipe\n resources: {}\n imagePullPolicy: Always\n restartPolicy: Always\nstatus: {}\n---\napiVersion: extensions/v1beta1\nkind: Deployment\nmetadata:\n creationTimestamp: null\n labels:\n io.elastest.service.type: tss\n name: rest-app\nspec:\n replicas: 1\n strategy: {}\n template:\n metadata:\n creationTimestamp: null\n labels:\n io.elastest.type: tss\n io.elastest.tjob.tss.id: rest-app\n io.elastest.tjob.tss.type: \"false\"\n elastest-component-type: tss\n elastest-component: rest-app\n spec:\n containers:\n - env:\n - name: ci_env\n value: '`bash <(curl -s https://codecov.io/env)`'\n image: elastest/eds-api:latest\n name: rest-app\n resources: {}\n imagePullPolicy: Always\n restartPolicy: Always\nstatus: {}\n---\napiVersion: extensions/v1beta1\nkind: Deployment\nmetadata:\n creationTimestamp: null\n labels:\n io.elastest.service.type: tss\n name: eds-base\nspec:\n replicas: 1\n strategy: {}\n template:\n metadata:\n creationTimestamp: null\n labels:\n io.elastest.type: tss\n io.elastest.tjob.tss.id: eds-base\n io.elastest.tjob.tss.type: \"false\"\n elastest-component-type: tss\n elastest-component: eds-base\n spec:\n containers:\n - image: elastest/eds-base:latest\n name: eds-base\n resources: {}\n imagePullPolicy: Always\n restartPolicy: Always\nstatus: {}",
"manifest_type": "kubernetes",
"plan_id": "94a1a0c7-21a0-42e3-abcd-f75f337b47c5",
"service_id": "fe5e0531-b470-441f-9c69-721c2b4875f2",
"endpoints": {
"frontend": {
"description": "Service to show emulated sensor data in the form of plots as well as to actuate sensors",
"main": true,
"api": {
"name": "memsipe",
"protocol": "http",
"port": 8000,
"path": "/onem2m/MemsIPE/sensor_data/"
}
},
"rest_app": {
"description": "Service to emulate mems data",
"main": false,
"api": {
"protocol": "http",
"port": 9090,
"path": "/health"
}
},
"eds-base": {
"description": "Demonstrator application",
"main": false,
"api": {
"protocol": "http",
"port": 8000,
"path": "/onem2m/"
}
}
}
}
]
}