Skip to content

Conversation

@ashangit
Copy link
Contributor

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

@github-actions github-actions bot added the BUILD label Dec 19, 2025
@ashangit ashangit changed the title test Add Helm configuration for spark operator HA Dec 19, 2025
@ashangit ashangit force-pushed the nfraison/high-availability branch from 7024b3a to a7ebc51 Compare December 19, 2025 09:36
@dongjoon-hyun
Copy link
Member

cc @jiangzho ?


{{- if gt (int .Values.operatorDeployment.replicas) 1 }}
---
apiVersion: policy/v1beta1
Copy link
Member

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?

@dongjoon-hyun dongjoon-hyun changed the title Add Helm configuration for spark operator HA Improve Helm templates to use Spark Operator HA feature easily Jan 4, 2026
maxUnavailable: 1
selector:
matchLabels:
app: spark-apache-operator
Copy link
Member

@dongjoon-hyun dongjoon-hyun Jan 4, 2026

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

@dongjoon-hyun dongjoon-hyun changed the title Improve Helm templates to use Spark Operator HA feature easily SPARK-54896: Improve Helm templates to use Spark Operator HA feature easily Jan 4, 2026
@dongjoon-hyun dongjoon-hyun changed the title SPARK-54896: Improve Helm templates to use Spark Operator HA feature easily [SPARK-54896] Improve Helm templates to use Spark Operator HA feature easily Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants