-
Notifications
You must be signed in to change notification settings - Fork 50
[SPARK-54896] Improve Helm templates to use Spark Operator HA feature easily #437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
7024b3a to
a7ebc51
Compare
|
cc @jiangzho ? |
|
|
||
| {{- if gt (int .Values.operatorDeployment.replicas) 1 }} | ||
| --- | ||
| apiVersion: policy/v1beta1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
policy/v1 instead of policy/v1beta1?
| maxUnavailable: 1 | ||
| selector: | ||
| matchLabels: | ||
| app: spark-apache-operator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if this is working correctly or not because we don't use app=spark-apache-operator label.
$ kubectl get pod --show-labels
NAME READY STATUS RESTARTS AGE LABELS
spark-kubernetes-operator-5f9d958469-pckdj 1/1 Running 0 78s app.kubernetes.io/component=operator-deployment,app.kubernetes.io/name=spark-kubernetes-operator,pod-template-hash=5f9d958469,spark-role=operator
spark-kubernetes-operator-5f9d958469-xck2k 1/1 Running 0 78s app.kubernetes.io/component=operator-deployment,app.kubernetes.io/name=spark-kubernetes-operator,pod-template-hash=5f9d958469,spark-role=operator
spark-kubernetes-operator-5f9d958469-xjmpx 1/1 Running 0 78s app.kubernetes.io/component=operator-deployment,app.kubernetes.io/name=spark-kubernetes-operator,pod-template-hash=5f9d958469,spark-role=operator
What changes were proposed in this pull request?
Set default configuration on the helm template in order to support high availability of the operator without requiring specific configuration from the user
Why are the changes needed?
Simplify setup of HA, only need to increase the number of replicas
Does this PR introduce any user-facing change?
No
How was this patch tested?
Run helm template with 1 and more replicas to check that added resources are well displayed
Deployed on a local kubernetes cluster with replicas set to 3
Was this patch authored or co-authored using generative AI tooling?
No