azure basic 26
azure basic 26
● Custom Sizes
● Persistent Storage – We do this by mounting Azure file shares.
● Virtual Network deployment – When deployed in a Vnet, ACI can securely
communicate
with other resources in the Vnet.
Azure Container Instances
Azure Container Instances provide a fast and simple way to run a container on
Azure, without
having to manage any virtual machines and adopt a high-level service. Azure
Container
Instances is a great solution for any scenario that can operate in discrete
containers, including
common applications, task automation, and build jobs.
Containers are becoming the preferred way to package, deploy and manage cloud
applications.
The following example shows a web server container built with an Azure Container
instance. A
container is running in a virtual machine on a virtual network.
Things to know about Azure Container
Instances
Fast startup times, Public IP connectivity and DNS names
Hypervisor-level security, Custom sizes, Persistent
storage
Linux and Windows containers, Coscheduled groups.
Virtual network deployment
Custom sizes for Azure Container Instances
Containers are typically optimized to run a single application, but the exact needs of
those
applications can be very different. Azure Container Instances provide optimal
utilization by
allowing precise specifications of CPU cores and memory. You pay based on what
you need and
get billed on the second, so you can fine-tune your spending based on actual need.
FAQs
1. What are probes in ACI?
--Back to Index-- 79
o You can configure the liveness probe. We check the liveness probe to see if the container
is healthy. If the container is not healthy, we need to restart. There are common scenarios
when containers run for a long time.
o You can configure the readiness probe. Here we might have a scenario where the
container (maybe DB for the backend) is just coming up. We run the readiness probe and
send requests to the container only if the probe succeeds.
2. How can we monitor ACI?
We use Azure Monitor. Here are the available metrics at this time.
o CPU Usage measured in millicuries (One millicore is 1/1000th of a CPU core)
o Memory Usage in bytes
o Network bytes received per second.
o Network bytes transmitted per second
3. What are container groups?
● Similar to AKS for orchestration, we can use container groups to combine and manage
containers. They get scheduled on the same host machine.
● The concept is similar to pods in Kubernetes. The use case for this is in scenarios where we
want to divide a single functional task into a smaller number of container images. An
example is a front-end container and a back-end container.
● The front end might serve a web application, with the back end running a service to
retrieve data.
Azure Container Groups
Container Groups are top-level resources in the Azure Container Instances.
A container group is a collection of containers scheduled on the same host machine.
Containers in a container group share a lifecycle, resources, local network, and
storage volumes.
Container is a similar kind of concept to a pod in Kubernetes.
Configuration example
Consider the following example of a multi-container group consisting of two
containers.
--Back to Index-- 80
For more information —> Introduction to container groups - Azure
Container Instances
Azure Container Apps
Azure Container Apps is used to run containerized applications without relying and
worrying on
orchestration or infrastructure, and Azure Container Apps allows you to run
microservices and
containerized applications on a serverless platform