Skip to content

Commit

Permalink
add message of the day for Linux nodes (#16942)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeldeib authored Dec 6, 2021
1 parent d94e6c5 commit 38b1448
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"parameters": {
"api-version": "2021-11-01-preview",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"agentPoolName": "agentpool1",
"parameters": {
"properties": {
"orchestratorVersion": "",
"count": 3,
"vmSize": "Standard_DS2_v2",
"osType": "Linux",
"osDiskSizeGB": 64,
"mode": "User",
"messageOfTheDay": "Zm9vCg=="
}
}
},
"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",
"messageOfTheDay": "Zm9vCg=="
}
}
},
"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",
"messageOfTheDay": "Zm9vCg=="
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,9 @@
"Create Agent Pool with Krustlet and the WASI runtime": {
"$ref": "./examples/AgentPoolsCreate_WasmWasi.json"
},
"Create Agent Pool with Message of the Day": {
"$ref": "./examples/AgentPoolsCreate_MessageOfTheDay.json"
},
"Stop Agent Pool": {
"$ref": "./examples/AgentPools_Stop.json"
},
Expand Down Expand Up @@ -2650,6 +2653,11 @@
"workloadRuntime": {
"$ref": "#/definitions/WorkloadRuntime"
},
"messageOfTheDay": {
"type": "string",
"title": "Message of the day for Linux nodes, base64-encoded.",
"description": "A base64-encoded string which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script)."
},
"vnetSubnetID": {
"type": "string",
"title": "The ID of the subnet which agent pool nodes and optionally pods will join on startup.",
Expand Down

0 comments on commit 38b1448

Please sign in to comment.