【问题标题】:Provision Azure Kubernetes ACS cluster using Azure 2.0 CLI使用 Azure 2.0 CLI 预配 Azure Kubernetes ACS 集群
【发布时间】:2017-11-04 01:13:15
【问题描述】:

我正在尝试使用 Windows 节点配置 Azure ACS Kubernetes 集群。 Azure 2.0 CLI 在创建 Linux 集群时运行良好,但在创建 Windows 集群时失败。

这是我执行的命令:

***@DAVEPC:~$ az acs create -n RMA-KB-01 -d rmakb -g RG-KB-01 --generate-ssh-keys --orchestrator-type kubernetes --windows --admin-password=*****

这是错误:

At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details. {   "status": "Failed",   "error": {
    "code": "ResourceDeploymentFailure",
    "message": "The resource operation completed with terminal provisioning state 'Failed'.",
    "details": [
      {
        "code": "ProvisioningFailed",
        "message": "Provisioning of resource(s) for container service 'RMA-KB-01' in resource group 'RG-KB-01' failed with errors: Resource type: Microsoft.Compute/virtualMachines, name: 1E4FCacs9001, id: /subscriptions/64b38e64-5dbd-438d-84d3-94e87b553a51/resourceGroups/RG-KB-01/providers/Microsoft.Compute/virtualMachines/1E4FCacs9001, StatusCode: NotFound, StatusMessage: \\n {\r\n  \"error\": {\r\n    \"code\": \"ImageNotFound\",\r\n    \"target\": \"imageReference\",\r\n    \"message\": \"The platform image 'MicrosoftWindowsServer:WindowsServer:2016-Datacenter-with-Containers:2016.0.20170127' is not available. Verify that all fields in the storage profile are correct.\"\r\n  }\r\n}\r\nResource type: Microsoft.Compute/virtualMachines, name: 1E4FCacs9000, id: /subscriptions/64b38e64-5dbd-438d-84d3-94e87b553a51/resourceGroups/RG-KB-01/providers/Microsoft.Compute/virtualMachines/1E4FCacs9000, StatusCode: NotFound, StatusMessage: \\n {\r\n  \"error\": {\r\n    \"code\": \"ImageNotFound\",\r\n    \"target\": \"imageReference\",\r\n    \"message\": \"The platform image 'MicrosoftWindowsServer:WindowsServer:2016-Datacenter-with-Containers:2016.0.20170127' is not available. Verify that all fields in the storage profile are correct.\"\r\n  }\r\n}\r\nResource type: Microsoft.Compute/virtualMachines, name: 1E4FCacs9002, id: /subscriptions/64b38e64-5dbd-438d-84d3-94e87b553a51/resourceGroups/RG-KB-01/providers/Microsoft.Compute/virtualMachines/1E4FCacs9002, StatusCode: NotFound, StatusMessage: \\n {\r\n  \"error\": {\r\n    \"code\": \"ImageNotFound\",\r\n    \"target\": \"imageReference\",\r\n    \"message\": \"The platform image 'MicrosoftWindowsServer:WindowsServer:2016-Datacenter-with-Containers:2016.0.20170127' is not available. Verify that all fields in the storage profile are correct.\"\r\n  }\r\n}\r\n"
      }
    ]   } }  Correlation ID: c69bc7a4-2d0a-431b-ac7e-f98894110eea

我刚刚也使用 Azure 门户尝试了这个过程,并得到了同样的错误。 Windows Container Kubernetes 预览版是否存在错误?

【问题讨论】:

    标签: azure kubernetes azure-cli windows-container


    【解决方案1】:

    看来是个bug,没有这样的VM Image:

    C:\> Get-AzureRmVMImage -Location westeurope -PublisherName $pubName -Offer $offerName `
          -Skus 2016-Datacenter-with-Containers | select version
    
    Version
    -------
    2016.127.20170406
    2016.127.20170411
    2016.127.20170510
    

    我已经重现了您的错误。 你应该提出一个问题here

    【讨论】:

    【解决方案2】:

    也许我遗漏了一些东西,但我认为您应该使用 az aks 而不是 az acs。关于它的好博客here

    ACS 是 pretty deprecated 服务(它是 Azure 为多容器编排器提供的产品),现在它被 AKS 取代。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-05
      • 1970-01-01
      • 2018-03-19
      相关资源
      最近更新 更多