az aks maintenanceconfiguration

참고

이 참조는 Azure CLI aks-preview 확장의 일부이며 버전 2.0.49 이상이 필요합니다. az aks maintenanceconfiguration 명령을 처음 실행할 때 확장이 자동으로 설치됩니다. 확장에 대해 자세히 알아보세요.

관리되는 Kubernetes 클러스터에서 유지 관리 구성을 관리하는 명령입니다.

명령

az aks maintenanceconfiguration add

관리되는 Kubernetes 클러스터에서 유지 관리 구성을 추가합니다.

az aks maintenanceconfiguration delete

관리되는 Kubernetes 클러스터에서 유지 관리 구성을 삭제합니다.

az aks maintenanceconfiguration list

관리되는 Kubernetes 클러스터의 유지 관리 구성을 나열합니다.

az aks maintenanceconfiguration show

관리되는 Kubernetes 클러스터에서 유지 관리 구성의 세부 정보를 표시합니다.

az aks maintenanceconfiguration update

관리되는 Kubernetes 클러스터의 유지 관리 구성을 업데이트합니다.

az aks maintenanceconfiguration add

관리되는 Kubernetes 클러스터에서 유지 관리 구성을 추가합니다.

az aks maintenanceconfiguration add --cluster-name
                                    --name
                                    --resource-group
                                    [--config-file]
                                    [--start-hour]
                                    [--weekday]

예제

--weekday 및 --start-hour를 통해 유지 관리 구성을 추가합니다.

az aks maintenanceconfiguration add -g xiazhan-mtc-stg --cluster-name test1 -n default --weekday Monday  --start-hour 1
  The maintenance is allowed on Monday 1:00am to 2:00am

--weekday를 통해 유지 관리 구성을 추가합니다. 유지 관리는 해당 날의 언제든지 허용됩니다.

az aks maintenanceconfiguration add -g xiazhan-mtc-stg --cluster-name test1 -n default --weekday Monday
  The maintenance is allowed on Monday.

유지 관리 구성 json 파일을 통해 유지 관리 구성 추가

az aks maintenanceconfiguration add -g xiazhan-mtc-stg --cluster-name test1 -n default --config-file ./test.json
    The content of json file looks below. It means the maintenance is allowed on UTC time Tuesday 1:00am - 3:00 am and Wednesday 1:00am - 2:00am, 6:00am-7:00am
    No maintenance is allowed from 2020-11-26T03:00:00Z to 2020-11-30T12:00:00Z and from 2020-12-26T03:00:00Z to 2020-12-26T12:00:00Z even if they are allowed in the above weekly setting
    {
          "timeInWeek": [
            {
              "day": "Tuesday",
              "hour_slots": [
                1,
                2
              ]
            },
            {
              "day": "Wednesday",
              "hour_slots": [
                1,
                6
              ]
            }
          ],
          "notAllowedTime": [
            {
              "start": "2021-11-26T03:00:00Z",
              "end": "2021-11-30T12:00:00Z"
            },
            {
              "start": "2021-12-26T03:00:00Z",
              "end": "2021-12-26T12:00:00Z"
            }
          ]
  }

필수 매개 변수

--cluster-name

클러스터 이름

--name -n

구성 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

선택적 매개 변수

--config-file

유지 관리 구성 json 파일입니다.

--start-hour

유지 관리가 허용되는 1시간의 시작 시간입니다. 예를 들어 1은 오전 1시에서 오전 2시 사이에 허용되는 것을 의미합니다.

--weekday

유지 관리가 허용되는 요일입니다. 예를 들어 월요일입니다.

az aks maintenanceconfiguration delete

관리되는 Kubernetes 클러스터에서 유지 관리 구성을 삭제합니다.

az aks maintenanceconfiguration delete --cluster-name
                                       --name
                                       --resource-group

필수 매개 변수

--cluster-name

클러스터 이름

--name -n

구성 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

az aks maintenanceconfiguration list

관리되는 Kubernetes 클러스터의 유지 관리 구성을 나열합니다.

az aks maintenanceconfiguration list --cluster-name
                                     --resource-group

필수 매개 변수

--cluster-name

클러스터 이름

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

az aks maintenanceconfiguration show

관리되는 Kubernetes 클러스터에서 유지 관리 구성의 세부 정보를 표시합니다.

az aks maintenanceconfiguration show --cluster-name
                                     --name
                                     --resource-group

필수 매개 변수

--cluster-name

클러스터 이름

--name -n

구성 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

az aks maintenanceconfiguration update

관리되는 Kubernetes 클러스터의 유지 관리 구성을 업데이트합니다.

az aks maintenanceconfiguration update --cluster-name
                                       --name
                                       --resource-group
                                       [--config-file]
                                       [--start-hour]
                                       [--weekday]

예제

--weekday 및 --start-hour로 유지 관리 구성을 업데이트합니다.

az aks maintenanceconfiguration update -g xiazhan-mtc-stg --cluster-name test1 -n default --weekday Monday  --start-hour 1
  The maintenance is allowed on Monday 1:00am to 2:00am

--weekday로 유지 관리 구성을 업데이트합니다. 유지 관리는 해당 날의 언제든지 허용됩니다.

az aks maintenanceconfiguration update -g xiazhan-mtc-stg --cluster-name test1 -n default --weekday Monday
  The maintenance is allowed on Monday.

유지 관리 구성 json 파일을 통해 유지 관리 구성 업데이트

az aks maintenanceconfiguration update -g xiazhan-mtc-stg --cluster-name test1 -n default --config-file ./test.json
    The content of json file looks below. It means the maintenance is allowed on UTC time Tuesday 1:00am - 3:00 am and Wednesday 1:00am - 2:00am, 6:00am-7:00am
    No maintenance is allowed from 2020-11-26T03:00:00Z to 2020-11-30T12:00:00Z and from 2020-12-26T03:00:00Z to 2020-12-26T12:00:00Z even if they are allowed in the above weekly setting
    {
          "timeInWeek": [
            {
              "day": "Tuesday",
              "hour_slots": [
                1,
                2
              ]
            },
            {
              "day": "Wednesday",
              "hour_slots": [
                1,
                6
              ]
            }
          ],
          "notAllowedTime": [
            {
              "start": "2021-11-26T03:00:00Z",
              "end": "2021-11-30T12:00:00Z"
            },
            {
              "start": "2021-12-26T03:00:00Z",
              "end": "2021-12-26T12:00:00Z"
            }
          ]
  }

필수 매개 변수

--cluster-name

클러스터 이름

--name -n

구성 이름입니다.

--resource-group -g

리소스 그룹의 이름입니다. az configure --defaults group=<name>을 사용하여 기본 그룹을 구성할 수 있습니다.

선택적 매개 변수

--config-file

유지 관리 구성 json 파일입니다.

--start-hour

유지 관리가 허용되는 1시간의 시작 시간입니다. 예를 들어 1은 오전 1시에서 오전 2시 사이에 허용되는 것을 의미합니다.

--weekday

유지 관리가 허용되는 요일입니다. 예를 들어 월요일입니다.