aks-engine custom image for node

5/31/2019

On the aks-engine github there is an example for a custom image for a node as follows:

"agentPoolProfiles": [
  {
    "name": "agentpool1",
    "count": 3,
    "imageReference": {
      "name": "stretch",
      "resourceGroup": "debian"
    },
    "vmSize": "Standard_D2_v2",
    "availabilityProfile": "AvailabilitySet"
  }
]

When I use this in my aks-engine generated ARM it can't find the resource group because I have not created it and not uploaded an a debian VHD as an Image in Azure.

Is there a way of using pre-made images on Azure instead of having to upload our own?

-- Softey
azure
kubernetes

2 Answers

6/3/2019

If you mean to create a custom image without upload your own VHD file in Azure when you say using the pre-made images. Then the answer is yes. You can create the image from the base images that Azure provided in the marketplace through the Packer tool or Capture the image from the Azure VM.

As you see in the aks-engine custom image, you need to create the custom image in the resource group first, and then use both resource group name and image to quote the custom image to create the agent pool. The description in agentPoolProfiles of aks-engine.

-- Charles Xu
Source: StackOverflow

6/3/2019

If you are using Azure Kubernetes Service(AKS) to create a managed AKS cluster, you won't be able to use the custom image or the gke-engine.

See the comment from Microsoft's employee on Aug 3, 2018:

Currently, AKS does not support deploying custom VM image as agent nodes. You can use ACS-Engine. Here is the link to open source version of ACS-Engine: https://github.com/Azure/acs-engine

-- Rajesh Gupta
Source: StackOverflow