Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] AKS Automatic #4301

Open
4 tasks
sabbour opened this issue May 21, 2024 · 20 comments
Open
4 tasks

[Feature] AKS Automatic #4301

sabbour opened this issue May 21, 2024 · 20 comments
Labels
automatic AKS Automatic feature-request Requested Features

Comments

@sabbour
Copy link
Contributor

sabbour commented May 21, 2024

AKS Automatic mode is a new capability within Azure Kubernetes Service (AKS) that lets you create optimized, ready-for-production clusters with reduced operational overhead. This means you can focus on building and running your applications, while AKS takes care of the rest.

AKS Automatic mode is currently in preview. You can get started today by following the quickstart guide on Microsoft Learn to create an AKS Automatic cluster and deploy an application.

Learn more about AKS Automatic: https://aka.ms/aks/automatic

We would love to hear your feedback and suggestions on how to make AKS Automatic mode even better and continue to boost your focus on your workloads.

Below are some of the current limitations, which will be broken into their own roadmap items.

Known preview limitations and roadmap

@sabbour sabbour added the automatic AKS Automatic label May 21, 2024
@PixelRobots
Copy link
Collaborator

Hey @sabbour

It seems that there is an issue when using the CLI. Automatic mode should be using the standard tier and not free, but if you try and deploy in West Europe you get an error message saying free tier is unavailable. I would say this is a bug as we are not using the free tier.

Please see the error message in the image below.
image

@sabbour
Copy link
Contributor Author

sabbour commented May 22, 2024

@PixelRobots can you confirm which aks-extension version you're using in the CLI?

@PixelRobots
Copy link
Collaborator

I am using 4.0.0b4.

I have also noticed it is not available via the portal yet even the preview one. I assume that will come at one point this week.

@PixelRobots
Copy link
Collaborator

it also looks like the Prometheus recording rules are not enabled by default too.

image

And it also seems to have an issue with the monitor settings.

image

@sabbour
Copy link
Contributor Author

sabbour commented May 22, 2024

I am using 4.0.0b4.

I have also noticed it is not available via the portal yet even the preview one. I assume that will come at one point this week.

Yes, the new portal experience (create/manage) is lighting up shortly. It is behind a flag now at https://aka.ms/aks/flight/automatic.

@PixelRobots we're looking into the other issue now.

@JoeyC-Dev
Copy link

JoeyC-Dev commented May 22, 2024

It will be better to mention the following command in the document to get the VM sizes available in all availability zones. I only tried this after 10 mins failure of creating AKS:

az vm list-skus --location southeastasia --output table

You can feel my pain:

az aks create -n testAKS -g eastusrG --sku automatic --node-vm-size Standard_D8ds_v5 --location eastus2 --no-ssh-key
Argument '--sku' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
The behavior of this command has been altered by the following extension: aks-preview
(BadRequest) The VM size of Standard_D8ds_v5 is only allowed  in zones [2 1] in your subscription in location 'eastus2'. 
Code: BadRequest
Message: The VM size of Standard_D8ds_v5 is only allowed  in zones [2 1] in your subscription in location 'eastus2'. 
az aks create -n testAKS -g eastusrG --sku automatic --no-ssh-key
Argument '--sku' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
The behavior of this command has been altered by the following extension: aks-preview
(BadRequest) The VM size of Standard_DS4_v2 is only allowed  in zones [3 1] in your subscription in location 'eastus'. 
Code: BadRequest
Message: The VM size of Standard_DS4_v2 is only allowed  in zones [3 1] in your subscription in location 'eastus'. 
az aks create -n testAKS -g eastusrG --sku automatic --node-vm-size Standard_B16als_v2 --no-ssh-key
Argument '--sku' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
The behavior of this command has been altered by the following extension: aks-preview
(VMSizeDoesNotSupportEphemeralOS) The Virtual Machine size Standard_B16als_v2 does not support Ephemeral OS disk.
Code: VMSizeDoesNotSupportEphemeralOS
Message: The Virtual Machine size Standard_B16als_v2 does not support Ephemeral OS disk.

And another suggestion: also can specify a default value for --node-osdisk-size while --sku automatic enabled on az-cli level, or otherwise:

joey [ ~ ]$ az aks create -n testAKS -g eastusrG --sku automatic --node-vm-size Standard_DC2s_v2 --location eastus --no-ssh-key 
Argument '--sku' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
The behavior of this command has been altered by the following extension: aks-preview
(VMCannotFitEphemeralOSDisk) The virtual machine size Standard_DC2s_v2 has a cache size of 46170898432 bytes and temporary disk size of 107374182400 bytes, but the OS disk requires 137438953472 bytes. Use a VM size with larger cache, larger temp disk, or disable ephemeral OS.
Code: VMCannotFitEphemeralOSDisk
Message: The virtual machine size Standard_DC2s_v2 has a cache size of 46170898432 bytes and temporary disk size of 107374182400 bytes, but the OS disk requires 137438953472 bytes. Use a VM size with larger cache, larger temp disk, or disable ephemeral OS.

It does can be fixed by specifying --node-osdisk-size:

joey [ ~ ]$ az aks create -n testAKS -g eastusrG --sku automatic --node-vm-size Standard_DC2s_v2 --node-osdisk-type Ephemeral --node-osdisk-size 48 --location eastus --no-ssh-key 
Argument '--sku' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
The behavior of this command has been altered by the following extension: aks-preview
 / Running ..

@sabbour
Copy link
Contributor Author

sabbour commented May 22, 2024

@JoeyC-Dev thanks for the feedback, we'll look into this and get the docs updated. This is mostly a limitation during preview.

@thepaulmacca
Copy link

thepaulmacca commented May 22, 2024

Hey @sabbour

It seems that there is an issue when using the CLI. Automatic mode should be using the standard tier and not free, but if you try and deploy in West Europe you get an error message saying free tier is unavailable. I would say this is a bug as we are not using the free tier.

Please see the error message in the image below.

image

@PixelRobots my guess is that it's setting the tier to free by default like the API does if not specified - but I've had those capacity errors in West Europe for days now, even on the standard tier

I've had to create my clusters in UK South for the moment

@PixelRobots
Copy link
Collaborator

Hey @sabbour

It seems that there is an issue when using the CLI. Automatic mode should be using the standard tier and not free, but if you try and deploy in West Europe you get an error message saying free tier is unavailable. I would say this is a bug as we are not using the free tier.

Please see the error message in the image below.

image

@PixelRobots my guess is that it's setting the tier to free by default - but I've had those capacity errors in West Europe for days now, even on the standard tier

I've had to create my clusters in uk south for the moment

So automatic should default to standard. Which it does. But the cli should not return that error in my opinion.

@sabbour
Copy link
Contributor Author

sabbour commented May 22, 2024

It's a bug, we're getting it fixed.

@JoeyC-Dev
Copy link

Today, when I try to create automatic AKS via Azure portal, I find out this:

image

This subscription does not have the flags: AKS-PrometheusAddonPreview registered. Preview features must be registered in order to create a cluster. To continue, register the required flags to the subscription.

But it is not mentioned in the section Register the feature flags, and I can create the automatic AKS via Azure CLI:
image

Not sure if the feature really needs to be registered, or it is a bug in Azure portal.

@ramanjk
Copy link

ramanjk commented May 24, 2024

Unable to stop the AKS automatic cluster after my use.
image

@PixelRobots
Copy link
Collaborator

Unable to stop the AKS automatic cluster after my use. image

This is due to the node auto provisioning part of automatic. https://learn.microsoft.com/en-us/azure/aks/node-autoprovision?tabs=azure-cli#unsupported-features

@sabbour will this become a feature of nap and in turn automatic clusters.

@ramanjk
Copy link

ramanjk commented May 24, 2024

agree, but it should have the feature, cx can stop and start the cluster.

@sabbour
Copy link
Contributor Author

sabbour commented May 24, 2024

Automatic clusters don't support start/stop.

@thepaulmacca
Copy link

Do you know when we can expect this to be resolved when using Bicep/Terraform?

Monitoring is wired up only when using the CLI and portal

And the earlier issues that were mentioned?

For something that's in public preview, this is proving quite hard to do PoCs on at this point

@PixelRobots
Copy link
Collaborator

Just did a portal adventure to test some bits.

When creating going via the portal creating the log analytics workspace it puts it in a default resource group rather than the one with all other resources. Can we fix that please, so it is deployed in the same resource group as the cluster and other items.

I also noticed when I delete the cluster some resources are not cleaned up. This is not very automatic... can we have it, so they are cleaned up as long as the cluster is in automatic mode?

image

@Jostepop
Copy link

Jostepop commented Jul 3, 2024

I have some questions/suggestions regarding the bring your own virtual network support:

  1. Will this feature allow us to control egress traffic? i.e. set egress type to user defined routing?
  2. Can we deploy AKS auto with only a load balancer (not ingress controller) and use a 3rd party reverse proxy like BigIP as ingress controller?
  3. Does "Bring your own virtual network" means that we can provide a pre-deployed VNET with VNET peerings and route tables for the AKS auto deployment?

Thank you!

@sabbour
Copy link
Contributor Author

sabbour commented Sep 6, 2024

@Jostepop

Will this feature allow us to control egress traffic? i.e. set egress type to user defined routing?

Yes.

Can we deploy AKS auto with only a load balancer (not ingress controller) and use a 3rd party reverse proxy like BigIP as ingress controller?

We will look into allowing disabling the ingress controller.

Does "Bring your own virtual network" means that we can provide a pre-deployed VNET with VNET peerings and route tables for the AKS auto deployment?

Yes.

@kewalaka
Copy link

kewalaka commented Nov 9, 2024

To clarify, without bring your own vnet does this mean we can not connect to azure resources via private endpoint? Or am I missing a trick?

I assume the supported way to do dns is via this method:
https://learn.microsoft.com/en-us/azure/aks/coredns-custom

.. but given the vnet is fully managed there is no means to wire the routing aspects in at the moment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automatic AKS Automatic feature-request Requested Features
Projects
Status: Public Preview (Shipped & Improving)
Development

No branches or pull requests

8 participants