Skip to content

Instantly share code, notes, and snippets.

@forki
Last active December 6, 2021 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forki/662c627d79b70008fc61bd9e8c8addd1 to your computer and use it in GitHub Desktop.
Save forki/662c627d79b70008fc61bd9e8c8addd1 to your computer and use it in GitHub Desktop.
containerEnvironment {
name "xmascontainers"
logAnalytics xmasLogs
add_containers [
containerApp {
name "http"
activeRevisionsMode ActiveRevisionsMode.Single
docker_image containerRegistryDomain containerRegistry "http" version
replicas 1 5
setting "ServiceBusQueueName" "wishrequests"
secret_setting "ServiceBusConnectionKey"
ingress { External = true; TargetPort = 80; Transport = "auto" }
dapr { AppId = "http" }
add_scale_rule "http-rule" (ScaleRuleType.Http {| ConcurrentRequests = 100 |})
}
containerApp {
name "servicebus"
activeRevisionsMode ActiveRevisionsMode.Single
docker_image containerRegistryDomain containerRegistry "servicebus" version
replicas 0 3
setting "ServiceBusQueueName" "wishrequests"
secret_setting "ServiceBusConnectionKey"
add_scale_rule
"sb-keda-scale"
(ScaleRuleType.ServiceBus {|
QueueName = "wishrequests"
MessageCount = 5
SecretRef = "servicebusconnectionkey" |})
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment