-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspotguide.yaml
175 lines (175 loc) · 5 KB
/
spotguide.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
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
name: 'Spark with History Server'
description: 'TODO write a description'
tags: ['Spark', 'History Server', 'Big Data', 'Streaming']
resources:
sumCpu: 8
sumMem: 12
filters: []
sameSize: false
onDemandPct: 25
minNodes: 3
maxNodes: 4
questions:
- type: pipeline
dataType: enum
key: spark_version_enum
label: 'Version'
description: ''
default: '2.4.3'
required: true
group: Spark
options:
- '2.3.2'
- '2.4.3'
targets:
- deploy_application.deployment.values.banzaicloud.spark.version
- type: pipeline
dataType: string
label: 'Number of executors'
default: '2'
group: Spark
targets:
- deploy_application.deployment.values.banzaicloud.spark.executor.num
- type: pipeline
dataType: string
label: 'Namespace'
required: true
group: Spark
targets:
- deploy_application.deployment.namespace
- install_history_server_auth_secrets.clusterSecret.namespace
- install_history_server_bucket_secrets.clusterSecret.namespace
- type: pipeline
dataType: enum
label: 'Language'
key: spark_interpreter_type
group: Spark
default: 'Scala'
options:
- 'Scala'
- 'Python'
- 'R'
showIf:
properties:
spark_version_enum:
const: '2.4.3'
targets:
- deploy_application.deployment.values.banzaicloud.interpreter
- type: pipeline
dataType: enum
label: 'Python version'
group: Spark
default: '3'
options:
- '2'
- '3'
showIf:
properties:
spark_interpreter_type:
const: 'Python'
spark_version_enum:
const: '2.4.3'
targets:
- deploy_application.deployment.values.banzaicloud.pythonVersion
- type: pipeline
dataType: boolean
label: 'RPC & IO encryption'
group: Spark
default: true
showIf:
properties:
spark_version_enum:
const: '2.4.3'
targets:
- deploy_application.deployment.values.banzaicloud.security.enabled
- type: pipeline
dataType: boolean
label: "Monitoring"
group: Spark
key: monitoring
default: true
targets:
- deploy_application.deployment.values.spark.monitoring.enabled
- type: pipeline
dataType: string
controlType: code
config:
mode: properties
label: 'Metrics properties'
required: false
default: |
# Enable Prometheus for all instances by class name
*.sink.prometheus.class=com.banzaicloud.spark.metrics.sink.PrometheusSink
# Prometheus pushgateway address
*.sink.prometheus.pushgateway-address=prometheus-pushgateway.pipeline-system:9091
*.sink.prometheus.pushgateway-enable-timestamp=true
*.sink.prometheus.enable-dropwizard-collector=true
*.sink.prometheus.enable-jmx-collector=false
group: Spark
showIf:
properties:
monitoring:
const: true
targets:
- deploy_application.deployment.values.spark.monitoring.metricsProperties
- type: pipeline
dataType: string
controlType: code
config:
mode: yaml
label: 'JMX collector'
required: false
default: |
lowercaseOutputName: false
lowercaseOutputLabelNames: false
whitelistObjectNames: ["*:*"]
group: Spark
showIf:
properties:
monitoring:
const: true
targets:
- deploy_application.deployment.values.spark.monitoring.jmxCollector
- type: pipeline
dataType: boolean
default: true
label: 'History Server'
key: historyServer
group: Spark
targets:
- deploy_application.deployment.values.historyServer.enabled
- type: secret
dataType: htpasswd
name: historyserverpass
group: Spark
label: 'History Server Auth Creds'
required: true
showIf:
properties:
historyServer:
const: true
targets:
- name: install_history_server_auth_secrets.clusterSecret.sourceSecretName
- name: deploy_application.deployment.values.banzaicloud.secret.historyServer.name
- type: bucket
name: sparkeventlogs
label: 'Bucket Name'
description: 'This bucket will be used to store spark logs.'
required: true
group: Spark
showIf:
properties:
historyServer:
const: true
targets:
- name: deploy_application.deployment.values.spark.spark-hs.sparkEventLogStorage.logDirectory
- cloud: deploy_application.deployment.values.spark.spark-hs.sparkEventLogStorage.cloudProvider
- location: deploy_application.deployment.values.banzaicloud.bucket.location
- location: deploy_application.deployment.values.spark.spark-hs.sparkEventLogStorage.aliOssRegion
- location: deploy_application.deployment.values.spark.spark-hs.sparkEventLogStorage.oracleRegion
- secret.accessName: install_history_server_bucket_secrets.clusterSecret.sourceSecretName
- secret.accessName: deploy_application.deployment.values.spark.spark-hs.sparkEventLogStorage.pipelineSecretName
- aks.storageAccount: deploy_application.deployment.values.banzaicloud.bucket.storageAccountName
- aks.storageAccount: deploy_application.deployment.values.spark.spark-hs.sparkEventLogStorage.azureStorageAccountName
- oracle.namespace: deploy_application.deployment.values.banzaicloud.bucket.namespace
- oracle.namespace: deploy_application.deployment.values.spark.spark-hs.sparkEventLogStorage.oracleNamespace