Skip to content

Commit

Permalink
[SPARK-49887] Update cluster-with-template.yaml example with pod an…
Browse files Browse the repository at this point in the history
…notation

### 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 #144 from dongjoon-hyun/SPARK-49887.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
  • Loading branch information
dongjoon-hyun committed Oct 4, 2024
1 parent bb809ec commit 700d69d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/cluster-with-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ spec:
customAnnotation: "annotation"
statefulSetSpec:
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
spec:
priorityClassName: system-cluster-critical
securityContext:
Expand Down Expand Up @@ -61,6 +64,9 @@ spec:
customAnnotation: "annotation"
statefulSetSpec:
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
spec:
priorityClassName: system-cluster-critical
securityContext:
Expand Down

0 comments on commit 700d69d

Please sign in to comment.