-
Notifications
You must be signed in to change notification settings - Fork 519
VMSS setting doesn't work with aks-engine v0.28.1 and kubernetes v1.12 #362
Comments
@gowthamboddapati this apimodel has |
I switched the |
@CecileRobertMichon Yes the availabilityProfile is VirtualMachineScaleSets. I retried again I get the same error: INFO[0000] Generating assets into E:\output-01-23-2019-07-19-34... Do you know if there is an error log that might indicate what might be wrong besides saying windowspool2offset is not found ? |
Can you please take a look at the azuredeploy.json file that was generated in your _output directory and search for instances of |
This is the section is azuredeploy.json that has some reference to windowspool2offset. { |
@gowthamboddapati what's the |
Closing the ticket. Sorry haven't mentioned it earlier. We are installing dsc as windows extension to have some software installed on the node. This settings gets appended to the azuredeploy.json before deploying to cluster. The settings we are using for DSC is not comaptiable with VMSS. We have to use different settings : https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-dsc. Thanks for all the help Cecile. |
Is this a request for help?
yes
Is this an ISSUE or FEATURE REQUEST? (choose one):
ISSUE
What version of acs-engine/aks-engine?
v0.28.1
Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Kubernetes
What happened ?
Can't deploy a cluster using agent availability profile "VirtualMachineScaleSets"
What you expected to happen?
cluster to deploy
How to reproduce it (as minimally and precisely as possible)?
run the deployment using this command:
aks-engine generate $k8s_json_file_path --output-directory $outputDirectoryPath
$template_file= Join-Path -Path $outputDirectoryPath -ChildPath "azuredeploy.json"
$parameter_file = Join-Path -Path $outputDirectoryPath -ChildPath "azuredeploy.parameters.json"
az group deployment create -name $ClusterName --resource-group $ResourceGroupName --template-file $template_file --parameters $parameter_file
Anything else we need to know:
I am trying to deploy windows clusters with agent availability profile VirtualMachineScaleSets. But I couldn't get it working. I am using aks-engine v0.28.1 and kubernetes v1.12. I get the below mentioned error. This looks similar to the incident that is resolved.
Error:
Azure Error: InvalidTemplate
Message: Deployment template validation failed: 'The template variable 'windowspool2Offset' is not found. Please see https://aka.ms/arm-template/#variables for usage details.'.
kubernetes.json used to generate deployment templates with aks-engine v0.28.1.
{
"apiVersion":"vlabs",
"properties":{
"orchestratorProfile":{
"orchestratorType":"Kubernetes",
"orchestratorRelease":"1.12",
"kubernetesConfig":{
"networkPolicy":"azure",
"useManagedIdentity":true
}
},
"masterProfile":{
"count":1,
"dnsPrefix":"clustername",
"vmSize":"Standard_D2_v2"
},
"agentPoolProfiles":[
{
"name":"windowspool2",
"count":2,
"vmSize":"Standard_D2_v2",
"availabilityProfile":"AvailabilitySet",
"osType":"Windows",
"osDiskSizeGB":127
}
],
"windowsProfile":{
"adminUsername":"place-holder",
"adminPassword":"pwd-placeholder",
"windowsPublisher":"MicrosoftWindowsServer",
"windowsOffer":"WindowsServerSemiAnnual",
"windowsSku":"Datacenter-Core-1803-with-Containers-smalldisk"
},
"linuxProfile":{
"adminUsername":"azureuser",
"ssh":{
"publicKeys":[
{
"keyData":"placeholder"
}
]
}
},
"servicePrincipalProfile":{
"clientId":"placeholder",
"secret":"placeholder"
}
}
}
Could some one let me know if I am doing something wrong in kubernetes.json (mentioned above)?
The text was updated successfully, but these errors were encountered: