schema.yaml
8.64 KB
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
openapi: 3.0.3
info:
title: OpenAPI schema for template .
components:
schemas:
variables:
type: object
required:
- image
- name
- namespace
properties:
image:
title: Image
type: string
description: Docker image name
x-walrus-ui:
group: Basic
order: 1
namespace:
title: Namespace
type: string
description: Namespace to deploy. Auto-generated if empty.
x-walrus-ui:
group: Basic
order: 2
name:
title: Name
type: string
description: Name of the deployment resource. Auto-generated if empty.
x-walrus-ui:
group: Basic
order: 3
ports:
title: Ports
type: array
description: Service ports to expose
default:
- 6666
items:
type: number
nullable: true
x-walrus-ui:
colSpan: 12
group: Advanced
order: 4
env:
title: Env
type: object
description: Name and value pairs to set as the environment variables
default: {}
nullable: true
additionalProperties:
type: string
x-walrus-ui:
colSpan: 12
group: Advanced
order: 5
replicas:
title: Replicas
type: number
description: Replicas to deploy
default: 1
nullable: true
x-walrus-ui:
group: Advanced
order: 6
request_cpu:
title: Request Cpu
type: string
description: CPU request. e.g. 0.5, 1, 2
default: ""
enum:
- 0.2
- 0.3
- 0.4
- 0.5
- 1
- 2
nullable: true
x-walrus-ui:
group: Resources
order: 7
request_memory:
title: Request Memory
type: string
description: Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi
default: 512Mi
enum:
- 128Mi
- 512Mi
- 1Gi
- 2Gi
- 3Gi
- 4Gi
nullable: true
x-walrus-ui:
group: Resources
order: 8
limit_cpu:
title: Limit Cpu
type: string
description: CPU limit. e.g. 0.5, 1, 2
default: ""
enum:
- 0.2
- 0.3
- 0.4
- 0.5
- 1
- 2
- 3
nullable: true
x-walrus-ui:
group: Resources
order: 9
limit_memory:
title: Limit Memory
type: string
description: Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi
default: 1Gi
enum:
- 128Mi
- 512Mi
- 1Gi
- 2Gi
- 3Gi
- 4Gi
nullable: true
x-walrus-ui:
group: Resources
order: 10
walrus_metadata_service_name:
title: Walrus Metadata Service Name
type: string
description: Walrus metadata service name.
default: ""
nullable: true
x-walrus-ui:
group: Basic
hidden: true
order: 11
walrus_metadata_namespace_name:
title: Walrus Metadata Namespace Name
type: string
description: Walrus metadata namespace name.
default: ""
nullable: true
x-walrus-ui:
group: Basic
hidden: true
order: 12
app_log_path_volume_name:
title: App Log Path Volume Name
type: string
description: '应用日志挂载卷名,名字只能使用-,例: abc-22 abc-cc'
default: app-log-path
nullable: true
x-walrus-ui:
group: Advanced
order: 13
app_log_path:
title: App Log Path
type: string
default: /data/java_log
nullable: true
x-walrus-ui:
group: Advanced
order: 14
restart_policy:
title: Restart Policy
type: string
description: Restart policy for all containers within the pod. One of Always,
OnFailure, Never
default: Always
nullable: true
x-walrus-ui:
group: Advanced
order: 15
args:
title: Args
type: string
description: 属于那个环境,例子:dev,test,beta,release, gh_release, gh_beta, testcdp,
testscrm
default:
- test
enum:
- dev
- test
- beta
- release
- gh_release
- gh_beta
- testcdp
- testscrm
items:
type: string
nullable: true
x-walrus-ui:
colSpan: 12
group: Advanced
order: 16
ingress_switch:
title: Ingress Switch
type: object
description: choise ingress switch
default:
annotations: {}
domain_name: null
path: /
path_type: ImplementationSpecific
switch: "off"
nullable: true
properties:
annotations:
additionalProperties:
type: object
x-walrus-ui:
colSpan: 12
showIf: switch=on
nullable: true
title: Annotations
type: object
x-walrus-ui:
colSpan: 12
order: 5
showIf: switch=on
domain_name:
nullable: true
title: Domain Name
type: string
x-walrus-ui:
order: 4
showIf: switch=on
path:
default: /
nullable: true
title: Path
type: string
x-walrus-ui:
order: 3
showIf: switch=on
path_type:
default: ImplementationSpecific
enum:
- ImplementationSpecific
- Exact
- Prefix
nullable: true
title: Path Type
type: string
x-walrus-ui:
order: 2
showIf: switch=on
switch:
enum:
- "off"
- "on"
nullable: true
title: Switch
type: string
x-walrus-ui:
order: 1
x-walrus-ui:
colSpan: 12
group: Ingress
order: 17
hosts:
title: Hosts
type: array
description: (Optional) Add /etc/hosts records to pods
default: []
items:
properties:
hostname:
items:
type: string
title: Hostname
type: array
x-walrus-ui:
colSpan: 12
order: 1
ip:
title: Ip
type: string
x-walrus-ui:
order: 2
required:
- hostname
- ip
type: object
x-walrus-ui:
colSpan: 12
nullable: true
x-walrus-ui:
colSpan: 12
group: Advanced
order: 18
prevent_deploy_on_the_same_node:
title: Prevent Deploy On The Same Node
type: boolean
description: Pod pod_anti_affinity rule, which prevents deploy same pod
on one node.
default: true
nullable: true
x-walrus-ui:
group: Advanced
order: 20
max_surge:
title: Max Surge
type: number
description: Rolling update config params. Present only if strategy_update
= RollingUpdate max_surge
default: 1
nullable: true
x-walrus-ui:
group: Advanced
order: 21
max_unavailable:
title: Max Unavailable
type: number
description: Rolling update config params. Present only if strategy_update
= RollingUpdate max_unavailable
default: 0
nullable: true
x-walrus-ui:
group: Advanced
order: 22
x-walrus-ui:
groupOrder:
- Basic
- Resourced
- Advanced
- Ingress