Skip to content

Commit 9998f9f

Browse files
committed
Update label and annotation setting documentation
1 parent 8ce6925 commit 9998f9f

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

src/jekyll/running-on-kubernetes.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -614,37 +614,39 @@ from the other deployment modes. See the [configuration page](configuration.html
614614
</td>
615615
</tr>
616616
<tr>
617-
<td><code>spark.kubernetes.driver.labels</code></td>
617+
<td><code>spark.kubernetes.driver.label.[LabelName]</code></td>
618618
<td>(none)</td>
619619
<td>
620-
Custom labels that will be added to the driver pod. This should be a comma-separated list of label key-value pairs,
621-
where each label is in the format <code>key=value</code>. Note that Spark also adds its own labels to the driver pod
620+
Add the label specified by <code>LabelName</code> to the driver pod.
621+
For example, <code>spark.kubernetes.driver.label.something=true</code>.
622+
Note that Spark also adds its own labels to the driver pod
622623
for bookkeeping purposes.
623624
</td>
624625
</tr>
625626
<tr>
626-
<td><code>spark.kubernetes.driver.annotations</code></td>
627+
<td><code>spark.kubernetes.driver.annotation.[AnnotationName]</code></td>
627628
<td>(none)</td>
628629
<td>
629-
Custom annotations that will be added to the driver pod. This should be a comma-separated list of label key-value
630-
pairs, where each annotation is in the format <code>key=value</code>.
630+
Add the annotation specified by <code>AnnotationName</code> to the driver pod.
631+
For example, <code>spark.kubernetes.driver.annotation.something=true</code>.
631632
</td>
632633
</tr>
633634
<tr>
634-
<td><code>spark.kubernetes.executor.labels</code></td>
635+
<td><code>spark.kubernetes.executor.label.[LabelName]</code></td>
635636
<td>(none)</td>
636637
<td>
637-
Custom labels that will be added to the executor pods. This should be a comma-separated list of label key-value
638-
pairs, where each label is in the format <code>key=value</code>. Note that Spark also adds its own labels to the
639-
executor pods for bookkeeping purposes.
638+
Add the label specified by <code>LabelName</code> to the executor pods.
639+
For example, <code>spark.kubernetes.executor.label.something=true</code>.
640+
Note that Spark also adds its own labels to the driver pod
641+
for bookkeeping purposes.
640642
</td>
641643
</tr>
642644
<tr>
643-
<td><code>spark.kubernetes.executor.annotations</code></td>
645+
<td><code>spark.kubernetes.executor.annotation.[AnnotationName]</code></td>
644646
<td>(none)</td>
645647
<td>
646-
Custom annotations that will be added to the executor pods. This should be a comma-separated list of annotation
647-
key-value pairs, where each annotation is in the format <code>key=value</code>.
648+
Add the annotation specified by <code>AnnotationName</code> to the executor pods.
649+
For example, <code>spark.kubernetes.executor.annotation.something=true</code>.
648650
</td>
649651
</tr>
650652
<tr>

0 commit comments

Comments
 (0)