This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 700d69d [SPARK-49887] Update `cluster-with-template.yaml` example
with pod annotation
700d69d is described below
commit 700d69d64254bfec82c0593cddc1ac29f915ac13
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Fri Oct 4 16:31:41 2024 -0700
[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 #144 from dongjoon-hyun/SPARK-49887.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
examples/cluster-with-template.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/examples/cluster-with-template.yaml
b/examples/cluster-with-template.yaml
index f1575c8..8e32d2c 100644
--- a/examples/cluster-with-template.yaml
+++ b/examples/cluster-with-template.yaml
@@ -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:
@@ -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:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]