Last active
December 6, 2021 20:36
-
-
Save forki/662c627d79b70008fc61bd9e8c8addd1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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