0

我正在尝试ACS-Engine使用Kubernetes. 我能够Linux agentPool成功设置。当我添加 时Windows agentPool,我收到一个错误。osType我只有在is时才得到这个Windows

我正在使用以下设置代理池:

"agentPoolProfiles": [
  {
    "name": "linuxpool1",
    "count": 3,
    "vmSize": "Standard_D2_v2",
    "availabilityProfile": "AvailabilitySet",
    "osType": "Linux"
  },
  {
    "name": "windowspool2",
    "count": 3,
    "vmSize": "Standard_D2_v2",
    "availabilityProfile": "AvailabilitySet",
    "osType": "Windows"
  }
],

包含时Windows agentPool,我收到以下错误:

MacBook-Pro:acs-engine appalachios$ ./acs-engine -artifacts zeuscluster zeus_deploy_v1.json 
acsengine took 2.42314ms
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x112a551]

goroutine 1 [running]:
github.com/Azure/acs-engine/pkg/api/vlabs.
(*Properties).Validate(0xc420070420, 0x4ce, 0x6ce)
/Users/appalachios/gopath/src/github.com/Azure/acs-
engine/pkg/api/vlabs/validate.go:241 +0x471
github.com/Azure/acs-engine/pkg/api.LoadContainerService(0xc420077500, 0x4ce, 0x6ce, 
0xc4200159f0, 0x5, 0x0, 0x0, 0x6ce)
/Users/appalachios/gopath/src/github.com/Azure/acs-engine/pkg/api/apiloader.go:73 +0x398
github.com/Azure/acs-engine/pkg/api.DeserializeContainerService(0xc420077500, 0x4ce, 0x6ce, 0x4ce, 0x6ce, 0x0, 0x0, 0x1271fc0)
/Users/appalachios/gopath/src/github.com/Azure/acs-engine/pkg/api/apiloader.go:30 +0x13a
github.com/Azure/acs-engine/pkg/api.LoadContainerServiceFromFile(0x7fff5fbffbfc, 0x13, 0x0, 0x0, 0x0, 0x0, 0x10b7510)
/Users/appalachios/gopath/src/github.com/Azure/acs-engine/pkg/api/apiloader.go:20 +0x1bd
main.main()
/Users/appalachios/gopath/src/github.com/Azure/acs-engine/acs-engine.go:205 +0x3c2
4

1 回答 1

1

我猜您的输入 API 模型中可能缺少 windowsProfile。例如:

"windowsProfile": {
  "adminUsername": "azureuser",
  "adminPassword": "replacepassword1234$"
}

在这种情况下,我将根据反馈返回更好的错误消息。但是您能否确认您的 API 模型中是否有 windowsProfile 来生成模板?

于 2017-04-26T21:53:41.107 回答