-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
130 lines (129 loc) · 3.87 KB
/
config.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
126
127
128
129
130
{
"type": "object",
"properties": {
"service": {
"type": "object",
"description": "DC/OS service configuration properties",
"properties": {
"name": {
"description": "The name of the service instance",
"type": "string",
"default": "fwredis",
"title": "Service name"
},
"user": {
"description": "The user that the service will run as.",
"type": "string",
"default": "root",
"title": "User"
},
"service_account": {
"description": "The service account for DC/OS service authentication. This is typically left empty to use the default unless service authentication is needed. The value given here is passed as the principal of Mesos framework.",
"type": "string",
"default": ""
},
"service_account_secret": {
"description": "Name of the Secret Store credentials to use for DC/OS service authentication. This should be left empty unless service authentication is needed.",
"type": "string",
"default": "",
"title": "Credential secret name (optional)"
},
"virtual_network_enabled": {
"description": "Enable virtual networking",
"type": "boolean",
"default": true
},
"virtual_network_name": {
"description": "The name of the virtual network to join",
"type": "string",
"default": "dcos"
},
"virtual_network_plugin_labels": {
"description": "Labels to pass to the virtual network plugin. Comma-separated key:value pairs. For example: k_0:v_0,k_1:v_1,...,k_n:v_n",
"type": "string",
"default": ""
},
"log_level": {
"description": "The log level for the DC/OS service.",
"type": "string",
"enum": [
"OFF",
"FATAL",
"ERROR",
"WARN",
"INFO",
"DEBUG",
"TRACE",
"ALL"
],
"default": "INFO"
},
"sleep": {
"description": "The sleep duration in seconds before tasks exit.",
"type": "number",
"default": 1000
}
},
"required": [
"name",
"sleep",
"user"
]
},
"node": {
"description": "fwredis pod configuration properties",
"type": "object",
"properties": {
"count": {
"title": "Node count",
"description": "Number of fwredis pods to run",
"type": "integer",
"default": 1
},
"placement_constraint": {
"title": "Placement constraint",
"description": "Placement constraints for nodes. Example: [[\"hostname\", \"UNIQUE\"]]",
"type": "string",
"default": "[[\"hostname\", \"UNIQUE\"]]",
"media": {
"type": "application/x-zone-constraints+json"
}
},
"cpus": {
"title": "CPU count",
"description": "fwredis pod CPU requirements",
"type": "number",
"default": 0.1
},
"mem": {
"title": "Memory size (MB)",
"description": "fwredis pod mem requirements (in MB)",
"type": "integer",
"default": 128
},
"disk": {
"title": "Disk size (MB)",
"description": "fwredis pod persistent disk requirements (in MB)",
"type": "integer",
"default": 25
},
"disk_type": {
"title": "Disk type [ROOT, MOUNT]",
"description": "Mount volumes require preconfiguration in DC/OS",
"enum": [
"ROOT",
"MOUNT"
],
"default": "ROOT"
}
},
"required": [
"count",
"cpus",
"mem",
"disk",
"disk_type"
]
}
}
}