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
To add labels to a specific revision, use the following command:
56
+
To add labels to a specific revision, use the following commands:
56
57
57
58
```azurecli
58
59
az containerapp revision label add \
59
-
--name <APP_NAME> \
60
-
--resource-group <RESOURCE_GROUP> \
61
-
--label blue \
62
-
--revision <BLUE_REVISION_NAME>
60
+
--resource-group <resource-group> \
61
+
--name <app-name> \
62
+
--label blue \
63
+
--revision <blue-revision-name>
63
64
64
65
az containerapp revision label add \
65
-
--name <APP_NAME> \
66
-
--resource-group <RESOURCE_GROUP> \
67
-
--label green \
68
-
--revision <GREEN_REVISION_NAME>
66
+
--resource-group <resource-group> \
67
+
--name <app-name> \
68
+
--label green \
69
+
--revision <green-revision-name>
69
70
```
70
-
Here, `<BLUE_REVISION_NAME>` is `<APP_NAME>--<BLUE_SUFFIX>`, and `<GREEN_REVISION_NAME>` is `<APP_NAME>--<GREEN_SUFFIX>`. A label can only be assigned to one revision at a time.
71
71
72
-
Initially, the revision with the *blue*`commitId` takes 100% of production traffic, while the newly deployed revision with the *green*`commitId` doesn't take any production traffic.
72
+
Here, `<blue-revision-name>` is `<app-name>--<blue-suffix>`, and `<green-revision-name>` is `<app-name>--<green-suffix>`. A label can only be assigned to one revision at a time.
73
+
74
+
Initially, the revision with the blue `commitId` takes 100% of production traffic, while the newly deployed revision with the green `commitId` doesn't take any production traffic.
73
75
74
76
In Azure Spring Apps, you can deploy at most two revisions of one app: one set as Production and the other as Staging. However, Azure Container Apps supports deploying multiple revisions for a single app.
75
77
76
-
## Test new revision
78
+
## Test a new revision
77
79
78
-
Each revision in Azure Container Apps has its own URL, enabling you to test and verify your deployment against the specific URL. Test the green revision with a specific domain, even though all production traffic is directed to the blue revision:
80
+
Each revision in Azure Container Apps has its own URL, enabling you to test and verify your deployment against the specific URL. Use the following commands to test the green revision with a specific domain, even though all production traffic is directed to the blue revision:
Azure Container Apps not only allows you to switch traffic between blue-green deployments but also between multiple revisions. Additionally, you can redirect a specific amount of production traffic to the green deployment.
133
+
Azure Container Apps not only enables you to switch traffic between blue-green deployments but also between multiple revisions. You can also redirect a specific amount of production traffic to the green deployment.
127
134
128
135
For more information about blue-green deployment in Azure Container Apps, see [Blue-Green Deployment in Azure Container Apps](../../container-apps/blue-green-deployment.md).
129
136
130
137
## Limitation
131
138
132
139
The Eureka Server isn't suitable for blue-green deployment because all revisions of the app are registered with the Eureka Server, preventing effective traffic splitting.
133
140
134
-
To enable traffic splitting when using Spring Cloud Gateway, you need to set the application URL in the URI field of your gateway configuration. You can obtain the application URL using the following command:
141
+
To enable traffic splitting when using Spring Cloud Gateway, you need to set the application URL in the URI field of your gateway configuration. You can obtain the application URL by using the following command:
0 commit comments