Skip to content

Commit 700d69d

Browse files
committed
[SPARK-49887] Update cluster-with-template.yaml example with pod annotation
### What changes were proposed in this pull request? This PR aims to update `cluster-with-template.yaml` example with pod annotation. ### Why are the changes needed? For `SparkCluster` CRD, `safe-to-evict` is frequently used. We had better provide it as an example. ```yaml cluster-autoscaler.kubernetes.io/safe-to-evict: "false" ``` ### Does this PR introduce _any_ user-facing change? No. This is only an example update. ### How was this patch tested? Manual review. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#144 from dongjoon-hyun/SPARK-49887. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent bb809ec commit 700d69d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/cluster-with-template.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ spec:
3030
customAnnotation: "annotation"
3131
statefulSetSpec:
3232
template:
33+
metadata:
34+
annotations:
35+
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
3336
spec:
3437
priorityClassName: system-cluster-critical
3538
securityContext:
@@ -61,6 +64,9 @@ spec:
6164
customAnnotation: "annotation"
6265
statefulSetSpec:
6366
template:
67+
metadata:
68+
annotations:
69+
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
6470
spec:
6571
priorityClassName: system-cluster-critical
6672
securityContext:

0 commit comments

Comments
 (0)