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 additional settings in liveness_probe, startup_probe and readiness_probe #25457

Closed
1 task done
pietersap opened this issue Mar 28, 2024 · 3 comments · Fixed by #27551
Closed
1 task done

Comments

@pietersap
Copy link

pietersap commented Mar 28, 2024

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 "+1" or "me too" comments, 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

The available settings for the configuration of the liveness, readiness and startup probes in Azure Container Apps are lacking a few details.

  • initial_delay: This setting is configurable in all three types of probes (liveness, readiness, startup) in Azure, but is only exposed in the liveness_probe block in the azurerm provider. It could be added to the readiness_probe and startup_probe blocks.
  • initial_delay, by the way, currently has weird behaviour. It seems to default to 1, but I cannot set it to 0. So I am currently forced to set the value to 1, even if I want to set it to 0.
  • success_count_threshold: This setting is configurable in all three types of probes (liveness, readiness, startup) in Azure, but is only exposed in the readiness_probe block in the azurerm provider. It could be added to the liveness_probe and startup_probe blocks.
  • failure_count_threshold: available in all three types of probes, in the azurerm provider the maximum value is 10 according to the documentation. I'm not sure if this is by design in the azurerm provider, but for sure Azure allows higher values. I'm currently at 15.

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

azurerm_container_app

Potential Terraform Configuration

liveness_probe {
  transport               = "TCP"
  port                    = 5001
  interval_seconds        = 10
  timeout                 = 2
  success_count_threshold = 1 # missing
  failure_count_threshold = 6
  initial_delay           = 0
}
readiness_probe {
  transport               = "TCP"
  port                    = 5002
  interval_seconds        = 10
  timeout                 = 2
  success_count_threshold = 1
  failure_count_threshold = 3
  initial_delay           = 0 # missing
}
startup_probe {
  transport               = "TCP"
  port                    = 5002
  interval_seconds        = 2
  timeout                 = 2
  success_count_threshold = 1 # missing
  failure_count_threshold = 10 # current maximum in azurerm, although Azure allows higher
  initial_delay           = 0 # missing
}

@pietersap
Copy link
Author

pietersap commented Mar 28, 2024

This issue slightly overlaps with existing issue #24845, but this issue is more complete

@yavuzkaymak
Copy link

SpartakusMd added a commit to SpartakusMd/hashicorp-terraform-provider-azurerm that referenced this issue Jul 8, 2024
@SpartakusMd
Copy link
Contributor

Hey @yavuzkaymak, I didn't see this option in the Azure Portal. I also didn't find it in the GO SDK, while in the .NET I found it at the template level. So in the end I didn't add it to my PR. Feel free to open a separate issue for it though.

SpartakusMd added a commit to SpartakusMd/hashicorp-terraform-provider-azurerm that referenced this issue Aug 14, 2024
SpartakusMd added a commit to SpartakusMd/hashicorp-terraform-provider-azurerm that referenced this issue Sep 23, 2024
SpartakusMd added a commit to SpartakusMd/hashicorp-terraform-provider-azurerm that referenced this issue Oct 24, 2024
stephybun pushed a commit that referenced this issue Oct 24, 2024
…obes (#27551)

* Support for additional settings in container apps for liveness_probe, startup_probe and readiness_probe #25457

* add flatten / expand logic

* fix field name

* Remove SuccessThreshold from ContainerAppLivenessProbe and ContainerAppStartupProbe

* add documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment