Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hi-fi/acr-agent-pool
Example how to scale Azure Container registry agent pool and save costs
https://github.com/hi-fi/acr-agent-pool
Last synced: about 1 month ago
JSON representation
Example how to scale Azure Container registry agent pool and save costs
- Host: GitHub
- URL: https://github.com/hi-fi/acr-agent-pool
- Owner: Hi-Fi
- License: mpl-2.0
- Created: 2024-02-25T12:11:50.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-02T18:00:43.000Z (10 months ago)
- Last Synced: 2024-10-09T15:42:47.962Z (2 months ago)
- Language: TypeScript
- Size: 211 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# acr-agent-pool
Example how to scale Azure Container registry agent pool and save costs## Directories
### autoscaling-function
Sample Azure function that can scale the agent pool according needs. Note that as Azure doesn't expose metrics related to pool queue status of event related to those, function has to run as scheduled and check status self.
### Docker
Sample Dockerfile to trigger run towards agent pool. Triggering can be done with command (in `docker` directory):
```
az acr build --image sample/hello-world:v1 \
--registry \
--agent-pool test-agent-pool \
--file Dockerfile .
```### Terraform
CDKTF code to deploy to existing Azure resource group::
- Virtual network with subnet
- Azure container registry
- Premium SKU as that's required for agent pools
- Container Registry Agent Pool