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

Support for the Container App scaler pollingInterval and cooldownPeriod configuration properties #28309

Open
1 task done
LandryDubus opened this issue Dec 17, 2024 · 4 comments

Comments

@LandryDubus
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

It would be usefull to be able to configure the pollingInterval and cooldownPeriod for the KEDA scalers of Azure Container Apps, like it is already possible to do through the ARM template.
Currently, the azurerm provider does not expose those properties.

New or Affected Resource(s)/Data Source(s)

azurerm_container_app

Potential Terraform Configuration

This could look like this:

resource "azurerm_container_app" "example" {
  name                         = "example-app"
  container_app_environment_id = azurerm_container_app_environment.example.id
  resource_group_name          = azurerm_resource_group.example.name
  revision_mode                = "Single"

  template {
    container {
      name   = "examplecontainerapp"
      image  = "mcr.microsoft.com/k8se/quickstart:latest"
      cpu    = 0.25
      memory = "0.5Gi"
    }
    custom_scale_rule {
      name             = "cpuscalingrule"
      custom_rule_type = "cpu"
      metadata = {
        type  = "Utilization"
        value = 70
      }
    }
    max_replicas = 10
    min_replicas = 0
    polling_interval = 30
    cooldown_period = 300
  }
}

References

No response

@ned1313
Copy link
Contributor

ned1313 commented Dec 18, 2024

@LandryDubus could you provide the ARM template that supports this feature? I checked a few and didn't see one.

@jsheetzmt
Copy link

Also looking for this functionality but the API is still in preview.

From @LandryDubus's message: https://learn.microsoft.com/en-us/azure/templates/microsoft.app/containerapps?pivots=deployment-language-arm-template#scale-1

@LandryDubus
Copy link
Author

@LandryDubus could you provide the ARM template that supports this feature? I checked a few and didn't see one.

The link to the template is in my original post.

@ned1313
Copy link
Contributor

ned1313 commented Dec 20, 2024

@LandryDubus thanks! Not sure how I missed that last time. The link took me somewhere else?

Anyway, @jsheetzmt is correct, this is part of the preview API and won't be added to the azurerm provider until a stable API is published that supports it. In the meantime, you can use the azapi provider.

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

No branches or pull requests

4 participants