fanyilun opened a new pull request, #37803:
URL: https://github.com/apache/spark/pull/37803
### What changes were proposed in this pull request?
This pr changes the fabric8 k8s method used in BasicExecutorFeatureStep
about setting blockmanager ports. Because It will override port definitions in
executor pod template file.
### Why are the changes needed?
We use spark.kubernetes.executor.podTemplateFile to specify executor pod
definition. However, we cannot set port definition to pod. For example, this is
my executorPodTemplate.yaml
`
apiversion: v1
kind: Pod
spec:
containers:
- name: spark-kubernetes-executor
ports:
- containerPort: 8090
name: jmx-exporter
protocol: TCP
`
When executors start, the pod definitions only show default blockmanager
port.
`
ports:
- containerPort: 7079
name: blockmanager
protocol: TCP
`
It looks like a bug, because the BasicExecutorFeatureStep uses withPorts to
override all port definitions.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Add unit test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]