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

Bump AKS API Version #395

Closed
Bryce-Soghigian opened this issue Jan 9, 2024 · 3 comments
Closed

Bump AKS API Version #395

Bryce-Soghigian opened this issue Jan 9, 2024 · 3 comments

Comments

@Bryce-Soghigian
Copy link

Bryce-Soghigian commented Jan 9, 2024

Bumping the AKS Preview and GA APIS

I work on the AKS Team on NodeAutoProvisioning. We added a flag to our preview api, but many customers are saying the latest version of the terraform API is about 6 months old.

SEE: Azure/karpenter-provider-azure#80 (comment)

Would it be possible to bump the AKS API versions of the teraform-provider? What are the steps to move forward there?

Thanks!

@Bryce-Soghigian
Copy link
Author

cc: nfsouzaj

@ms-henglu
Copy link
Member

Hello @Bryce-Soghigian ,

Thank you for taking time to report this issue!

The docs are not update to date, but the azapi provider does support the latest 2023-10-02-preview, here's an example of how to use the node provisioning profile:

resource "azapi_resource" "rg" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = "henglu0109aks"
  location = "westeurope"

}
resource "azapi_resource" "cluster" {
  type      = "Microsoft.ContainerService/managedClusters@2023-10-02-preview"
  parent_id = azapi_resource.rg.id
  name      = "henglu0109aks"
  location  = "westeurope"
  identity {
    type = "SystemAssigned"
    identity_ids = []
  }
  
  body = jsonencode({
    properties = {
      agentPoolProfiles = [
        {
          count  = 1
          mode   = "System"
          name   = "default"
          vmSize = "Standard_DS2_v2"
        },
      ]
      nodeProvisioningProfile = {
        mode = "Auto"
      }
      dnsPrefix = "henglu0109aks"
    }
  })
}

@Bryce-Soghigian
Copy link
Author

Thank you @ms-henglu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants