dongjoon-hyun opened a new pull request, #742:
URL: https://github.com/apache/spark-kubernetes-operator/pull/742
### What changes were proposed in this pull request?
This PR aims to support an opt-in `NetworkPolicy` for the operator pod in
the Helm chart.
When `operatorDeployment.networkPolicy.enable` is `true` (default: `false`),
all ingress to the
operator pod is denied except the health probe port (open to any source, for
kubelet probes) and
the metrics port, which is reachable only from the peers listed in
`operatorDeployment.networkPolicy.metricsIngress`.
```yaml
operatorDeployment:
networkPolicy:
enable: true
metricsIngress:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: "monitoring"
```
### Why are the changes needed?
The operator serves unauthenticated plain-HTTP probe and metrics endpoints,
and the chart
provided no way to restrict in-cluster access to them.
### Does this PR introduce _any_ user-facing change?
No, because this is disabled by default.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Fable 5
--
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]