-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmassdriver.yaml
98 lines (94 loc) · 2.6 KB
/
massdriver.yaml
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
schema: draft-07
name: "k8s-elasticsearch"
description: "Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases."
source_url: github.com/massdriver-cloud/k8s-elasticsearch
access: "private"
type: "bundle"
params:
examples:
- __name: Development
instance_configuration:
storage: 10
cpu_limit: 1
memory_limit: 2
replica_configuration:
replicas: 1
- __name: Production
instance_configuration:
storage: 50
cpu_limit: 4
memory_limit: 8
replica_configuration:
replicas: 3
required:
- namespace
- instance_configuration
- replica_configuration
properties:
namespace:
type: string
title: Namespace
description: Choose a namespace for Elasticsearch.
pattern: "^[a-z]{1,}[a-z0-9-]{0,62}$"
message:
pattern: Namespace can only contain lowercase letters, numbers, and hyphens, with a max of 63 characters.
instance_configuration:
type: object
title: Instance Configuration
properties:
storage:
type: integer
title: Storage Size
description: The size (in GiB) of the Elasticsearch instance. Must be an integer between 10 and 1000.
minimum: 10
maximum: 1000
cpu_limit:
type: number
title: CPU Limit
description: Unit is in CPUs. Decimal numbers are allowed (3 digits of precision). Value must be between 0.5 and 32.
minimum: 0.5
maximum: 32
memory_limit:
type: number
title: Memory Limit
description: Unit is Gi. Decimal numbers are allowed. Value must be between 0.5 and 64
minimum: 0.5
maximum: 64
replica_configuration:
type: object
title: Replica Configuration
properties:
replicas:
type: integer
title: Replicas
description: Number of replicas to create. Must be an integer between 1 and 5.
minimum: 1
maximum: 5
connections:
required:
- kubernetes_cluster
properties:
kubernetes_cluster:
$ref: massdriver/kubernetes-cluster
artifacts:
required:
- elasticsearch_authentication
properties:
elasticsearch_authentication:
$ref: massdriver/elasticsearch-authentication
ui:
ui:order:
- namespace
- instance_configuration
- replica_configuration
- "*"
instance_configuration:
ui:order:
- storage
- cpu_limit
- memory_limit
- "*"
replica_configuration:
ui:order:
- replicas
- "*"