Skip to content

Commit

Permalink
add workload runtime to agent pool api (#15726)
Browse files Browse the repository at this point in the history
* add workload runtime to agent pool api

* reference example

* add custom words
  • Loading branch information
alexeldeib authored Aug 24, 2021
1 parent 2ea0ce7 commit d5e693b
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ koreacentral
koreasouth
Kpis
Kraaij
Krustlet
Ksettings
kstem
kube
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"parameters": {
"api-version": "2021-08-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"agentPoolName": "agentpool1",
"parameters": {
"properties": {
"orchestratorVersion": "",
"count": 3,
"vmSize": "Standard_DS2_v2",
"osType": "Linux",
"osDiskSizeGB": 64,
"mode": "User",
"workloadRuntime": "WasmWasi"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
"type": "Microsoft.ContainerService/managedClusters/agentPools",
"name": "agentpool1",
"properties": {
"provisioningState": "Succeeded",
"orchestratorVersion": "1.17.8",
"count": 3,
"vmSize": "Standard_DS2_v2",
"maxPods": 110,
"osType": "Linux",
"osDiskSizeGB": 64,
"mode": "User",
"workloadRuntime": "WasmWasi"
}
}
},
"201": {
"body": {
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
"type": "Microsoft.ContainerService/managedClusters/agentPools",
"name": "agentpool1",
"properties": {
"provisioningState": "Creating",
"orchestratorVersion": "1.17.8",
"count": 3,
"vmSize": "Standard_DS2_v2",
"maxPods": 110,
"osType": "Linux",
"osDiskSizeGB": 64,
"mode": "User",
"workloadRuntime": "WasmWasi"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,9 @@
},
"Create Agent Pool using an agent pool snapshot": {
"$ref": "./examples/AgentPoolsCreate_Snapshot.json"
},
"Create Agent Pool with Krustlet and the WASI runtime": {
"$ref": "./examples/AgentPoolsCreate_WasmWasi.json"
}
}
},
Expand Down Expand Up @@ -2618,6 +2621,9 @@
"kubeletDiskType": {
"$ref": "#/definitions/KubeletDiskType"
},
"workloadRuntime": {
"$ref": "#/definitions/WorkloadRuntime"
},
"vnetSubnetID": {
"type": "string",
"title": "The ID of the subnet which agent pool nodes and optionally pods will join on startup.",
Expand Down Expand Up @@ -4882,6 +4888,28 @@
},
"description": "Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage."
},
"WorkloadRuntime": {
"type": "string",
"enum": [
"OCIContainer",
"WasmWasi"
],
"x-ms-enum": {
"name": "WorkloadRuntime",
"modelAsString": true,
"values": [
{
"value": "OCIContainer",
"description": "Nodes will use Kubelet to run standard OCI container workloads."
},
{
"value": "WasmWasi",
"description": "Nodes will use Krustlet to run WASM workloads using the WASI provider (Preview)."
}
]
},
"description": "Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage."
},
"KubeletConfig": {
"title": "Kubelet configurations of agent nodes.",
"description": "See [AKS custom node configuration](https://docs.microsoft.com/azure/aks/custom-node-configuration) for more details.",
Expand Down

0 comments on commit d5e693b

Please sign in to comment.