When spark.kubernetes.operator.events.enabled is set to true, the operator publishes Kubernetes Event objects for SparkApplication and SparkCluster resources. These events are visible via kubectl describe or kubectl get events.
Event Types and Reasons
- Warning Events: Indicate issues such as
SchedulingFailure, Failed, DriverEvicted, DriverStartTimedOut, DriverReadyTimedOut, ExecutorsStartTimedOut, RunningWithBelowThresholdExecutors, TerminatedWithoutReleaseResources (for SparkApplication), or CleanupError and StatusUpdateFailed (general operator errors). - Normal Events: Indicate successful state transitions like
Submitted, DriverStarted, DriverReady, RunningHealthy, Succeeded, and ResourceReleased.
Filtering Events
To reduce noise, use spark.kubernetes.operator.events.excludedReasons to provide a comma-separated list of Java regular expressions. The operator will skip publishing events whose reason matches these expressions.
Note: Use .* to exclude all reasons. Do not use {} or single * as they are invalid regex in this context.
# Example: Exclude specific healthy states
spark.kubernetes.operator.events.excludedReasons=RunningHealthy,RunningWithPartialCapacity
# Example: Exclude all reasons using regex
spark.kubernetes.operator.events.excludedReasons=Running.*