title | description | author | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|
Azure Kubernetes Service as Event Grid source (Preview) |
This article describes how to use Azure Kubernetes Service as an Event Grid event source. It provides the schema and links to tutorial and how-to articles. |
zr-msft |
conceptual |
10/04/2021 |
zarhoads |
This article provides the properties and schema for AKS events. For an introduction to event schemas, see Azure Event Grid event schema. It also gives you a list of quick starts and tutorials to use AKS as an event source.
[!INCLUDE preview features callout]
AKS emits the following event types
Event Type | Description |
---|---|
Microsoft.ContainerService.NewKubernetesVersionAvailable | Triggered when the list of available Kubernetes versions is updated. |
When an event is triggered, the Event Grid service sends data about that event to subscribing endpoint. This section contains an example of what that data would look like for each event. Each event has the following top-level data:
Property | Type | Description |
---|---|---|
topic |
string | Full resource path to the event source. This field isn't writeable. Event Grid provides this value. |
subject |
string | Publisher-defined path to the event subject. |
eventType |
string | One of the registered event types for this event source. |
eventTime |
string | The time the event is generated based on the provider's UTC time. |
id |
string | Unique identifier for the event. |
data |
object | Blob storage event data. |
dataVersion |
string | The schema version of the data object. The publisher defines the schema version. |
metadataVersion |
string | The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value. |
When an event is triggered, the Event Grid service sends data about that event to subscribing endpoint. This section contains an example of what that data would look like for each event. Each event has the following top-level data:
Property | Type | Description |
---|---|---|
source |
string | Full resource path to the event source. This field isn't writeable. Event Grid provides this value. |
subject |
string | Publisher-defined path to the event subject. |
type |
string | One of the registered event types for this event source. |
time |
string | The time the event is generated based on the provider's UTC time. |
id |
string | Unique identifier for the event. |
data |
object | Blob storage event data. |
specversion |
string | CloudEvents schema specification version. |
{
"topic": "/subscriptions/<id>/resourceGroups<rg>/providers/Microsoft.ContainerService/managedClusters/<cluster>",
"subject": "<cluster>",
"eventType": "Microsoft.ContainerService.NewKubernetesVersionAvailable",
"id": "1234567890abcdef1234567890abcdef12345678",
"data": {
"latestSupportedKubernetesVersion": "1.20.7",
"latestStableKubernetesVersion": "1.19.11",
"lowestMinorKubernetesVersion": "1.18.19",
"latestPreviewKubernetesVersion": "1.21.1"
},
"dataVersion": "1",
"metadataVersion": "1",
"eventTime": "2021-07-01T04:52:57.0000000Z"
}
{
"source": "/subscriptions/<id>/resourceGroups<rg>/providers/Microsoft.ContainerService/managedClusters/<cluster>",
"subject": "<cluster>",
"type": "Microsoft.ContainerService.NewKubernetesVersionAvailable",
"id": "1234567890abcdef1234567890abcdef12345678",
"data": {
"latestSupportedKubernetesVersion": "1.20.7",
"latestStableKubernetesVersion": "1.19.11",
"lowestMinorKubernetesVersion": "1.18.19",
"latestPreviewKubernetesVersion": "1.21.1"
},
"specversion": "1.0",
"time": "2021-07-01T04:52:57.0000000Z"
}
The data object contains the following properties:
Property | Type | Description |
---|---|---|
latestSupportedKubernetesVersion |
string | The latest supported version of Kubernetes available. |
latestStableKubernetesVersion |
string | The latest stable supported version of Kubernetes available. |
lowestMinorKubernetesVersion |
string | The lowest supported version of Kubernetes available. |
latestPreviewKubernetesVersion |
string | The latest preview version of Kubernetes available. |
- For an introduction to Azure Event Grid, see What is Event Grid?
- For more information about creating an Azure Event Grid subscription, see Event Grid subscription schema