@@ -92,15 +92,31 @@ include::example$example-sparkapp-pvc.yaml[]
92
92
include::example$example-sparkapp-s3-private.yaml[]
93
93
----
94
94
95
- <1> Job python artifact (local )
95
+ <1> Job python artifact (located in S3 )
96
96
<2> Artifact class
97
- <3> S3 section, specifying the existing secret and S3 end-point ( in this case, Min-IO )
97
+ <3> S3 section, specifying the existing secret and S3 end-point (in this case, MinIO )
98
98
<4> Credentials secret
99
99
<5> Spark dependencies: the credentials provider (the user knows what is relevant here) plus dependencies needed to access external resources...
100
100
<6> ...in this case, in s3, accessed with the credentials defined in the secret
101
101
<7> the name of the volume mount backed by a `PersistentVolumeClaim` that must be pre-existing
102
102
<8> the path on the volume mount: this is referenced in the `sparkConf` section where the extra class path is defined for the driver and executors
103
103
104
+ === JVM (Scala): externally located artifact accessed with job arguments provided via configuration map
105
+
106
+ [source,yaml]
107
+ ----
108
+ include::example$example-configmap.yaml[]
109
+ ----
110
+ [source,yaml]
111
+ ----
112
+ include::example$example-sparkapp-configmap.yaml[]
113
+ ----
114
+ <1> Name of the configuration map
115
+ <2> Argument required by the job
116
+ <3> Job scala artifact that requires an input argument
117
+ <4> The expected job argument, accessed via the mounted configuration map file
118
+ <5> The name of the configuration map that will be mounted to the driver/executor
119
+ <6> The mount location of the configuration map (this will contain a file `/arguments/job-args.txt`)
104
120
105
121
== CRD argument coverage
106
122
@@ -187,6 +203,12 @@ Below are listed the CRD fields that can be defined by the user:
187
203
|`spec.driver.volumeMounts.mountPath`
188
204
|Volume mount path
189
205
206
+ |`spec.driver.configMapMounts.configMapName`
207
+ |Name of configuration map to be mounted in the driver
208
+
209
+ |`spec.driver.configMapMounts.path`
210
+ |Mount path of the configuration map in the driver
211
+
190
212
|`spec.executor.cores`
191
213
|Number of cores for each executor
192
214
@@ -204,5 +226,11 @@ Below are listed the CRD fields that can be defined by the user:
204
226
205
227
|`spec.executor.volumeMounts.mountPath`
206
228
|Volume mount path
229
+
230
+ |`spec.executor.configMapMounts.configMapName`
231
+ |Name of configuration map to be mounted in the executor
232
+
233
+ |`spec.executor.configMapMounts.path`
234
+ |Mount path of the configuration map in the executor
207
235
|===
208
236
0 commit comments