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
This article shows you how to migrate a Spring Cloud Gateway for VMWare Tanzu project running on an Azure Spring Apps Enterprise plan to a project running as a self-hosted, open source software (OSS) Spring Cloud Gateway project running as an Azure Container Apps application.
19
+
This article shows you how to migrate a Spring Cloud Gateway for VMWare Tanzu project running on the Azure Spring Apps Enterprise plan to a self-hosted, open source software (OSS) Spring Cloud Gateway project running as an Azure Container Apps application.
19
20
20
-
The OSS version of Spring Cloud Gateway mentioned in this page is provided as an example for reference. Users can choose other distributions of Spring Cloud Gateway based on their requirements.
21
+
The OSS version of Spring Cloud Gateway mentioned in this page is provided as an example for reference. You can choose other distributions of Spring Cloud Gateway based on your requirements.
21
22
22
23
> [!NOTE]
23
24
> The features offered by Spring Cloud Gateway for VMWare Tanzu are more extensive than the features in the OSS version. Be sure to examine the differences and ensure compatibility before moving to production.
24
25
25
26
## Prerequisites
26
27
27
28
- An Azure Spring Apps Enterprise plan instance with Spring Cloud Gateway enabled.
28
-
- An Azure Container Apps instance. For more information, see [Quickstart: Deploy your first container app using the Azure portal](/azure/container-apps/quickstart-portal).
29
+
- An Azure Container Apps instance. For more information, see [Quickstart: Deploy your first container app using the Azure portal](../../container-apps/quickstart-portal.md).
29
30
-[Azure CLI](/cli/azure/install-azure-cli)
30
-
- An Azure container registry with sufficient permissions to build and push Docker images. For more information, see [Create a container registry](/azure/container-registry/container-registry-get-started-azure-cli#create-a-container-registry).
31
+
- An Azure container registry instance with sufficient permissions to build and push Docker images. For more information, see [Quickstart: Create a private container registry using the Azure CLI](/azure/container-registry/container-registry-get-started-azure-cli).
31
32
32
33
## Prepare the code of the self-hosted Spring Cloud Gateway application
33
34
@@ -143,7 +144,7 @@ spring:
143
144
- StripPrefix=1
144
145
```
145
146
146
-
Spring Cloud Gateway for VMWare Tanzu sets `StripPrefix=1` by default on every route. To migrate to a Spring Cloud Gateway, you need to explicitly set `StripPrefix=1` in the filter configuration.
147
+
Spring Cloud Gateway for VMWare Tanzu sets `StripPrefix=1` by default on every route. To migrate to Spring Cloud Gateway, you need to explicitly set `StripPrefix=1` in the filter configuration.
147
148
148
149
To enable your Spring Cloud Gateway application to access other applications through the app name, you need to enable ingress for your Azure Container App applications. You can also set the accessible fully qualified domain name (FQDN) of the Azure Container Apps application to be the URI of the route, following the format `https://<app-name>.<container-app-env-name>.<region>.azurecontainerapps.io`.
149
150
@@ -165,7 +166,7 @@ spring:
165
166
size: <response-cache-size>
166
167
```
167
168
168
-
If you enable the response cache for the route, you can use the [`LocalResponseCache`](https://docs.spring.io/spring-cloud-gateway/docs/current/reference/html/#local-cache-response-filter) filter in the routing rule configuration of the managed gateway for your Spring project by using the following example:
169
+
If you enable the response cache for the route, you can use the [`LocalResponseCache`](https://docs.spring.io/spring-cloud-gateway/docs/current/reference/html/#local-cache-response-filter) filter in the routing rule configuration of the managed Gateway for Spring by using the following example:
169
170
170
171
```yaml
171
172
spring:
@@ -194,7 +195,7 @@ To build and push the Docker image, use the following steps:
194
195
195
196
1. In the Spring Cloud Gateway project directory, create a **Dockerfile** with the following contents:
196
197
197
-
> [!Note]
198
+
> [!NOTE]
198
199
> Alternatively, use the [ACME Fitness Store sample Dockerfile](https://github.com/Azure-Samples/acme-fitness-store/blob/Azure/azure-kubernetes-service/resources/gateway/gateway/Dockerfile).
199
200
200
201
```dockerfile
@@ -257,11 +258,11 @@ Access the FQDN of the Spring Cloud Gateway application to verify that it's runn
257
258
258
259
If you encounter issues when running the Spring Cloud Gateway application, you can view real-time and historical logs of the `gateway` application in Azure Container Apps. For more information, see [Application Logging in Azure Container Apps](/azure/container-apps/logging).
259
260
260
-
You can also monitor a gateway application's metrics. For more information, see [Monitor Azure Container Apps metrics](/azure/container-apps/metrics)
261
+
You can also monitor a gateway application's metrics. For more information, see [Monitor Azure Container Apps metrics](/azure/container-apps/metrics).
261
262
262
263
## Known limitation
263
264
264
-
As far as we know, Spring Cloud Gateway doesn't support the following commercial features:
265
+
The OSS Spring Cloud Gateway doesn't natively support the following commercial features:
265
266
266
267
- Metadata used to generate OpenAPI documentation.
0 commit comments