forked from contiv-experimental/contivmodel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
servicelb.json
executable file
·70 lines (70 loc) · 2.33 KB
/
servicelb.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
{
"name": "contivModel",
"objects": [{
"name": "serviceLB",
"version": "v1",
"type": "object",
"key": ["tenantName","serviceName"],
"cfgProperties": {
"tenantName": {
"type": "string",
"title": "Tenant Name",
"length": 64,
"format": "^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\\\-]*[a-zA-Z0-9])\\\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\\\-]*[A-Za-z0-9])$"
},
"networkName": {
"type": "string",
"title": "Service network name",
"length": 64,
"format": "^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\\\-]*[a-zA-Z0-9])\\\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\\\-]*[A-Za-z0-9])$"
},
"serviceName": {
"type": "string",
"title": "service name",
"length": 256,
"format": "^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\\\-]*[a-zA-Z0-9])\\\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\\\-]*[A-Za-z0-9])$"
},
"ipAddress":{
"type":"string",
"title":"Service ip",
"length": 15,
"format": "^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(\\\\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3})?$"
},
"selectors": {
"type": "array",
"title": "labels key value pair",
"length": 512,
"items" :"string"
},
"ports":{
"type":"array",
"title":"service provider port",
"length": 32,
"items" : "string"
}
},
"operProperties": {
"serviceVip": {
"type": "string",
"title": "allocated IP addresses"
},
"numProviders": {
"type": "int",
"title": " number of provider endpoints for the service"
},
"providers": {
"type": "array",
"items": "endpoint",
"title": "provider endpoints for the service"
}
},
"links": {
"tenant": {
"ref": "tenant"
},
"network": {
"ref": "network"
}
}
}]
}