我认为这个命令应该可以帮助我在 Azure 容器服务上扩展我的单代理 k8s 集群:
az acs scale --name krish_acs_cluster_west --new-agent-count 2 --resource-group krish_res_grp_west --debug --output json
但是,它没有按预期工作,并且我收到一个错误日志:
requests.packages.urllib3.connectionpool : Starting new HTTPS connection (1): management.azure.com
requests.packages.urllib3.connectionpool : https://management.azure.com:443 "GET /subscriptions/1225d95b-e76d-4d21-90a0-2f137dee9c84/resourceGroups/krish_res_grp_west/providers/Microsoft.ContainerService/containerServices/krish_acs_cluster_west?api-version=2017-01-31 HTTP/1.1" 200 None
msrest.http_logger : Response status: 200
msrest.http_logger : Response headers:
msrest.http_logger : 'Cache-Control': 'no-cache'
msrest.http_logger : 'Pragma': 'no-cache'
msrest.http_logger : 'Transfer-Encoding': 'chunked'
msrest.http_logger : 'Content-Type': 'application/json; charset=utf-8'
msrest.http_logger : 'Content-Encoding': 'gzip'
msrest.http_logger : 'Expires': '-1'
msrest.http_logger : 'Vary': 'Accept-Encoding'
msrest.http_logger : 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
msrest.http_logger : 'x-ms-served-by': '1b39334a-f523-4de8-b14d-738ab830ba48_131305327966325140'
msrest.http_logger : 'x-ms-request-id': '5fc2db3e-a70c-4403-b761-60872cb099f9'
msrest.http_logger : 'Server': 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0'
msrest.http_logger : 'x-ms-ratelimit-remaining-subscription-reads': '14581'
msrest.http_logger : 'x-ms-correlation-request-id': 'f1048446-30b4-42f5-968d-08004a0472c6'
msrest.http_logger : 'x-ms-routing-request-id': 'WESTEUROPE:20170309T214442Z:f1048446-30b4-42f5-968d-08004a0472c6'
msrest.http_logger : 'Date': 'Thu, 09 Mar 2017 21:44:42 GMT'
msrest.http_logger : Response content:
msrest.http_logger : Body contains chunked data.
msrest.exceptions : Parameter 'ContainerServiceServicePrincipalProfile.secret' can not be None.
Parameter 'ContainerServiceServicePrincipalProfile.secret' can not be None.