Skip to content

Commit fbbfa2a

Browse files
author
Kaarthikeyan Subramanian
committed
Corrections to weekly maintenance
1 parent e6ef297 commit fbbfa2a

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

articles/aks/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
href: start-stop-cluster.md
191191
- name: Use planned maintenance (preview)
192192
href: planned-maintenance.md
193-
- name: Planned Maintenance for AKS Weekly releases (preview)
193+
- name: Planned Maintenance for AKS weekly releases (preview)
194194
href: aks-planned-maintenance-weekly-releases.md
195195
- name: Cloud Controller Manager
196196
href: out-of-tree.md

articles/aks/aks-planned-maintenance-weekly-releases.md

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Use Planned Maintenance for your Azure Kubernetes Service (AKS) cluster weekly releases (preview)
33
titleSuffix: Azure Kubernetes Service
4-
description: Learn how to use Planned Maintenance in Azure Kubernetes Service (AKS).
4+
description: Learn how to use Planned Maintenance in Azure Kubernetes Service (AKS) for cluster weekly releases
55
services: container-service
66
ms.topic: article
77
ms.date: 09/16/2021
@@ -12,7 +12,7 @@ author: kaarthis
1212

1313
# Use Planned Maintenance to schedule maintenance windows for your Azure Kubernetes Service (AKS) cluster (preview) exclusively for weekly releases
1414

15-
Planned Maintenance allows you to schedule weekly maintenance windows that will ensure the weekly releases [releases] are controlled within a maintenance window of your choosing. Maintenance Windows are configured using the Azure CLI and basically you get to choose or assign one from a set of pre available configurations.
15+
Planned Maintenance allows you to schedule weekly maintenance windows that will ensure the weekly releases [releases] are controlled. Maintenance Windows are configured using the Azure CLI, allowing you to select from a set of pre-available configurations.
1616

1717
## Before you begin
1818

@@ -28,24 +28,14 @@ When using Planned Maintenance, the following restrictions apply:
2828
- Currently, performing maintenance operations are considered *best-effort only* and are not guaranteed to occur within a specified window.
2929
- Updates cannot be blocked for more than seven days.
3030

31-
### Install aks-preview CLI extension
3231

33-
You also need the *aks-preview* Azure CLI extension version 0.5.4 or later. Install the *aks-preview* Azure CLI extension by using the [az extension add][az-extension-add] command. Or install any available updates by using the [az extension update][az-extension-update] command.
34-
35-
```azurecli-interactive
36-
# Install the aks-preview extension
37-
az extension add --name aks-preview
38-
39-
# Update the extension to make sure you have the latest version installed
40-
az extension update --name aks-preview
41-
```
4232

4333
## Available Pre-created Public Maintenance Configuration for you to pick
4434

4535
There are 2 general kinds of pre-created public maintenance configurations:
4636

47-
For Weekday (Monday, Tuesday, Wednesday, Thursday), from 10 pm to 6 am next morning.
48-
For Weekend (Friday, Saturday, Sunday), from 10 pm to 6 am next morning.
37+
- For Weekday (Monday, Tuesday, Wednesday, Thursday), from 10 pm to 6 am next morning.
38+
- For Weekend (Friday, Saturday, Sunday), from 10 pm to 6 am next morning.
4939
List of pre-created Public Maintenance Configurations, Prod Region, Weekday Schedule (change the 'weekday' in the configuration name to 'weekend' for Weekend Schedule)
5040

5141
Configuration Name Time Zone
@@ -61,6 +51,9 @@ aks-mrp-cfg-weekday_utc-12 UTC-12
6151

6252
Find the public maintenance configuration ID by name:
6353
az maintenance public-configuration show --resource-name "aks-mrp-cfg-weekday_utc8"
54+
55+
This call may prompt you to install the extension maintenance, once done you can proceed as below :
56+
6457
the call should return
6558
{
6659
"duration": "08:00",
@@ -83,20 +76,18 @@ the call should return
8376
"visibility": "Public"
8477
}
8578

86-
The public maintenance configuration ID is what returned in the "id" field:
87-
"id": "/subscriptions/0159df5c-b605-45a9-9876-36e17d5286e0/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/aks-mrp-cfg-weekday_utc8"
8879

89-
Assign the public maintenance configuration ID to an AKS cluster
90-
az maintenance assignment create --maintenance-configuration-id "/subscriptions/0159df5c-b605-45a9-9876-36e17d5286e0/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/aks-mrp-cfg-weekday_utc8" --name assignmentName --provider-name "Microsoft.ContainerService" --resource-group resourceGroupName --resource-name resourceName --resource-type "managedClusters"
80+
Next, assign the Public Maintenance configuration to your AKS cluster using the ID:
81+
az maintenance assignment create --maintenance-configuration-id "/subscriptions/0159df5c-b605-45a9-9876-36e17d5286e0/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/aks-mrp-cfg-weekday_utc8" --name assignmentName --provider-name "Microsoft.ContainerService" --resource-group myResourceGroup --resource-name myAKSCluster --resource-type "managedClusters"
9182

9283
## List all maintenance windows in an existing cluster
9384

94-
az maintenance assignment list --provider-name "Microsoft.ContainerService" --resource-group resourceGroupName --resource-name resourceName --resource-type "managedClusters"
85+
az maintenance assignment list --provider-name "Microsoft.ContainerService" --resource-group myResourceGroup --resource-name myAKSCluster --resource-type "managedClusters"
9586

9687

9788
## Delete a public maintenance configuration of an AKS cluster
9889

99-
az maintenance assignment delete --name assignmentName --provider-name "Microsoft.ContainerService" --resource-group resourceGroupName --resource-name resourceName --resource-type "managedClusters"
90+
az maintenance assignment delete --name assignmentName --provider-name "Microsoft.ContainerService" --resource-group myResourceGroup --resource-name myAKSCluster --resource-type "managedClusters"
10091

10192

10293
<!-- LINKS - Internal -->

0 commit comments

Comments
 (0)