Events Click here for latest

Kubernetes Events emitted by KEDA

Warning

You are currently viewing v"2.13" of the documentation and it is not the latest. For the most recent documentation, kindly click here.

Kubernetes Events emitted by KEDA

KEDA emits the following Kubernetes Events:

EventTypeDescription
ScaledObjectReadyNormalOn the first time a ScaledObject is ready, or if the previous ready condition status of the object was Unknown or False
ScaledJobReadyNormalOn the first time a ScaledJob is ready, or if the previous ready condition status of the object was Unknown or False
ScaledObjectCheckFailedWarningIf the check validation for a ScaledObject fails
ScaledJobCheckFailedWarningIf the check validation for a ScaledJob fails
ScaledObjectDeletedNormalWhen a ScaledObject is deleted and removed from KEDA watch
ScaledJobDeletedNormalWhen a ScaledJob is deleted and removed from KEDA watch
KEDAScalersStartedNormalWhen Scalers watch loop have started for a ScaledObject or ScaledJob
KEDAScalersStoppedNormalWhen Scalers watch loop have stopped for a ScaledObject or a ScaledJob
KEDAScalerFailedWarningWhen a Scaler fails to create or check its event source
KEDAScaleTargetActivatedNormalWhen the scale target (Deployment, StatefulSet, etc) of a ScaledObject is scaled to 1
KEDAScaleTargetDeactivatedNormalWhen the scale target (Deployment, StatefulSet, etc) of a ScaledObject is scaled to 0
KEDAScaleTargetActivationFailedWarningWhen KEDA fails to scale the scale target of a ScaledObject to 1
KEDAScaleTargetDeactivationFailedWarningWhen KEDA fails to scale the scale target of a ScaledObject to 0
KEDAJobsCreatedNormalWhen KEDA creates jobs for a ScaledJob
TriggerAuthenticationAddedNormalWhen a new TriggerAuthentication is added
TriggerAuthenticationDeletedNormalWhen a TriggerAuthentication is deleted
ClusterTriggerAuthenticationAddedNormalWhen a new ClusterTriggerAuthentication is added
ClusterTriggerAuthenticationDeletedNormalWhen a ClusterTriggerAuthentication is deleted

CloudEvent Support (Experimental)

Subscribing to events with CloudEventSource

CloudEventSource resource can be used in KEDA for subscribing to events that are emitted to the user’s defined CloudEvent sink.

📝 Event will be emitted to both Kubernetes Events and CloudEvents Destination if CloudEventSource resource is created.

Here is a the schema of the CloudEventSource CRD:

apiVersion: eventing.keda.sh/v1alpha1
kind: CloudEventSource
metadata:
  name: {cloud-event-name}
spec:
  clusterName: {cluster-name} #Optional. Will be used in the source/subject to specify where the event comes from. The default value is 'kubernetes-default' and it can also be set during the installation of KEDA with --k8sClusterName. This one will overwrite others if set.
  destination:
    http:
      uri: http://foo.bar

In general, an event emitted by KEDA would fundamentally come down to the following structure:

{
    "specversion" : "1.0",
    "type" : "com.cloudeventsource.keda",
    "source" : "/{cluster-name}/{keda-namespace}/keda",
    "subject" : "/{cluster-name}/{namespace}/{object-type}/{object-name}",
    "id" : "<guid>",
    "time" : "2018-04-05T17:31:00Z",
    "datacontenttype" : "application/json",
    "data" : {
      "reason":"<event-reason>",
      "message":"<event-message>"
   }
}

Event Sinks

There will be multiple types of destination to emit KEDA events to.

Here is an overview of the supported destinations:

HTTP endpoint

  destination:
    http:
      uri: http://foo.bar  #An http endpoint that can receive cloudevent

Supported Event List

Event TypeScenario Description
keda.scaledobject.ready.v1On the first time a ScaledObject is ready, or if the previous ready condition status of the object was Unknown or False
keda.scaledobject.failed.v1If the check validation for a ScaledObject fails