Container groups as the main unit of work
When running containers in Container Instances, you always have two options:
- Run a single container for one job.
- Deploy a group of containers, which are specialized in more complex tasks and allow you to partition your work.
The group of containers in Container Instances is called a container group. You may think about it as a single unit of work – all the containers in a group share CPU, memory, network, and storage. They work as a single unit and are destroyed in the same moment as each other. There are two ways to deploy a container group:
- Deploy your IaC (using, for example, Azure Resource Manager templates or Bicep files) and include a container group there.
- Use a YAML file that contains the definition of your container group.
In this chapter, we will focus on using YAML as this is a more concise and native way of deploying containers (which, in fact, is very similar to Kubernetes deployments...