You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/containers.md
+87-40Lines changed: 87 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,14 @@ services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: container-apps
7
7
ms.topic: conceptual
8
-
ms.date: 02/18/2022
8
+
ms.date: 05/12/2022
9
9
ms.author: cshoe
10
10
ms.custom: ignite-fall-2021
11
11
---
12
12
13
13
# Containers in Azure Container Apps Preview
14
14
15
-
Azure Container Apps manages the details of Kubernetes and container orchestrations for you. Containers in Azure Container Apps can use any runtime, programming language, or development stack of your choice.
15
+
Azure Container Apps manages the details of Kubernetes and container orchestration for you. Containers in Azure Container Apps can use any runtime, programming language, or development stack of your choice.
- Any Linux-based x86-64 (`linux/amd64`) container image
22
22
- Containers from any public or private container registry
23
23
24
-
Additional features include:
24
+
Features include:
25
25
26
-
- There is no required base container image.
27
-
- Changes to the `template` ARM configuration section triggers a new [container app revision](application-lifecycle-management.md).
26
+
- There's no required base container image.
27
+
- Changes to the `template` ARM configuration section trigger a new [container app revision](application-lifecycle-management.md).
28
28
- If a container crashes, it automatically restarts.
29
29
30
30
> [!NOTE]
31
31
> The only supported protocols for a container app's fully qualified domain name (FQDN) are HTTP and HTTPS through ports 80 and 443 respectively.
32
32
33
33
## Configuration
34
34
35
-
The following example configuration shows the options available when setting up a container.
35
+
Below is an example of the `containers` array in the [`properties.template`](azure-resource-manager-api-spec.md#propertiestemplate) section of a container app resource template. The excerpt shows the available configuration options when setting up a container.
@@ -68,8 +111,11 @@ The following example configuration shows the options available when setting up
68
111
|`env`| An array of key/value pairs that define environment variables. | Use `secretRef` instead of the `value` field to refer to a secret. |
69
112
|`resources.cpu`| The number of CPUs allocated to the container. | Values must adhere to the following rules: the value must be greater than zero and less than or equal to 2, and can be any decimal number, with a maximum of two decimal places. For example, `1.25` is valid, but `1.555` is invalid. The default is 0.5 CPU per container. |
70
113
|`resources.memory`| The amount of RAM allocated to the container. | This value is up to `4Gi`. The only allowed units are [gibibytes](https://simple.wikipedia.org/wiki/Gibibyte) (`Gi`). Values must adhere to the following rules: the value must be greater than zero and less than or equal to `4Gi`, and can be any decimal number, with a maximum of two decimal places. For example, `1.25Gi` is valid, but `1.555Gi` is invalid. The default is `1Gi` per container. |
114
+
|`volumeMounts`| An array of volume mount definitions. | You can define a temporary volume or multiple permanent storage volumes for your container. For more information about storage volumes, see [Use storage mounts in Azure Container Apps](storage-mounts.md).|
115
+
|`probes`| An array of health probes enabled in the container. | This feature is based on Kubernetes health probes. For more information about probes settings, see [Health probes in Azure Container Apps](health-probes.md).|
116
+
71
117
72
-
The total amount of CPUs and memory requested for all the containers in a container app must add up to one of the following combinations.
118
+
When allocating resources, the total amount of CPUs and memory requested for all the containers in a container app must add up to one of the following combinations.
73
119
74
120
| vCPUs (cores) | Memory |
75
121
|---|---|
@@ -82,43 +128,43 @@ The total amount of CPUs and memory requested for all the containers in a contai
82
128
|`1.75`|`3.5Gi`|
83
129
|`2.0`|`4.0Gi`|
84
130
85
-
-All of the CPU requests in all of your containers must match one of the values in the vCPUs column.
86
-
-All of the memory requests in all your containers must match the memory value in the memory column in the same row of the CPU column.
131
+
-The total of the CPU requests in all of your containers must match one of the values in the vCPUs column.
132
+
-The total of the memory requests in all your containers must match the memory value in the memory column in the same row of the CPU column.
87
133
88
134
## Multiple containers
89
135
90
-
You can define multiple containers in a single container app. Groups of containers are known as [pods](https://kubernetes.io/docs/concepts/workloads/pods). The containers in a pod share hard disk and network resources and experience the same [application lifecycle](application-lifecycle-management.md).
136
+
You can define multiple containers in a single container app. The containers in a container app share hard disk and network resources and experience the same [application lifecycle](application-lifecycle-management.md).
91
137
92
-
You run multiple containers together by defining more than one container in the configuration's `containers` array.
138
+
To run multiple containers in a container app, add more than one container in the `containers` array of the container app template.
93
139
94
-
Reasons to run containers together in a pod include:
140
+
Reasons to run containers together in a container app include:
95
141
96
142
- Use a container as a sidecar to your primary app.
97
-
-Use of a shared disk space and virtual network.
143
+
-Share disk space and the same virtual network.
98
144
- Share scale rules among containers.
99
-
- Group together multiple containers that need to always run together.
100
-
- Enable direct communication among containers on the same host.
145
+
- Group multiple containers that need to always run together.
146
+
- Enable direct communication among containers.
101
147
102
148
## Container registries
103
149
104
-
You can deploy images hosted on private registries where credentials are provided through the Container Apps configuration.
150
+
You can deploy images hosted on private registries by providing credentials in the Container Apps configuration.
105
151
106
-
To use a container registry, you first define the required fields to the [configuration's](azure-resource-manager-api-spec.md)`registries` section.
152
+
To use a container registry, you define the required fields in `registries` array in the [`properties.configuration`](azure-resource-manager-api-spec.md)section of the container app resource template. The `passwordSecretRef` field identifies the name of the secret in the `secrets` array name where you defined the password.
107
153
108
154
```json
109
155
{
110
156
...
111
157
"registries": [{
112
158
"server": "docker.io",
113
159
"username": "my-registry-user-name",
114
-
"passwordSecretRef": "my-password-secretref-name"
160
+
"passwordSecretRef": "my-password-secret-name"
115
161
}]
116
162
}
117
163
```
118
164
119
-
With this set up, the saved credentials can be used when you reference a container image in an `image` in the `containers` array.
165
+
With the registry information setup, the saved credentials can be used to pull a container image from the private registry when your app is deployed.
120
166
121
-
The following example shows how to deploy an app from the Azure Container Registry.
167
+
The following example shows how to configure Azure Container Registry credentials in a container app.
122
168
123
169
```json
124
170
{
@@ -130,6 +176,7 @@ The following example shows how to deploy an app from the Azure Container Regist
Copy file name to clipboardExpand all lines: articles/container-apps/microservices.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ ms.custom: ignite-fall-2021
20
20
21
21
:::image type="content" source="media/microservices/azure-container-services-microservices.png" alt-text="Container apps are deployed as microservices.":::
22
22
23
-
A Container Apps [environment](environment.md) provides a security boundary around a group of container apps. A single container app typically represents a microservice, which is composed of pods made up of one or more [containers](containers.md).
23
+
A Container Apps [environment](environment.md) provides a security boundary around a group of container apps. A single container app typically represents a microservice, which is composed of container apps made up of one or more [containers](containers.md).
0 commit comments