Skip to content

Commit 3ccbf93

Browse files
Xuyang CaoXuyang Cao
authored andcommitted
fix
1 parent 65f1994 commit 3ccbf93

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

articles/container-apps/java-admin-eureka-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To complete this tutorial, you need the following items:
2828
|--|--|
2929
| Azure account | An active subscription is required. If you don't have one, you [can create one for free](https://azure.microsoft.com/free/). |
3030
| Azure CLI | Install the [Azure CLI](/cli/azure/install-azure-cli).|
31-
| An existing Eureka Server for Spring Java component | If you don't have one, follow the [Create the Eureka Server for Spring](#create-the-eureka-server-for-spring) section to create one. |
31+
| An existing Eureka Server for Spring Java component | If you don't have one, follow the [Create the Eureka Server for Spring](java-eureka-server.md#Create-the-Eureka-Server-for-Spring-Java-component) section to create one. |
3232

3333
## Considerations
3434

@@ -91,7 +91,7 @@ Before you begin, create the necessary resources by executing the following comm
9191

9292
## Optional: Create the Eureka Server for Spring
9393

94-
1. If you don't have an existing Eureka Server for Spring, follow the command below to create the Eureka Server Java component.
94+
1. If you don't have an existing Eureka Server for Spring, follow the command below to create the Eureka Server Java component. For more information, see [Create the Eureka Server for Spring](java-eureka-server.md#Create-the-Eureka-Server-for-Spring-Java-component).
9595
9696
```azurecli
9797
az containerapp env java-component eureka-server-for-spring create \

articles/container-apps/java-eureka-server.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Execute the following commands to create your resource group, container apps env
5656
export LOCATION=eastus
5757
export RESOURCE_GROUP=my-services-resource-group
5858
export ENVIRONMENT=my-environment
59-
export JAVA_COMPONENT_NAME=eureka
59+
export EUREKA_COMPONENT_NAME=eureka
6060
export APP_NAME=sample-service-eureka-client
6161
export IMAGE="mcr.microsoft.com/javacomponents/samples/sample-service-eureka-client:latest"
6262
```
@@ -66,7 +66,7 @@ Execute the following commands to create your resource group, container apps env
6666
| `LOCATION` | The Azure region location where you create your container app and Java component. |
6767
| `ENVIRONMENT` | The Azure Container Apps environment name for your demo application. |
6868
| `RESOURCE_GROUP` | The Azure resource group name for your demo application. |
69-
| `JAVA_COMPONENT_NAME` | The name of the Java component created for your container app. In this case, you create a Eureka Server for Spring Java component. |
69+
| `EUREKA_COMPONENT_NAME` | The name of the Java component created for your container app. In this case, you create a Eureka Server for Spring Java component. |
7070
| `IMAGE` | The container image used in your container app. |
7171

7272
1. Log in to Azure with the Azure CLI.
@@ -90,7 +90,7 @@ Execute the following commands to create your resource group, container apps env
9090
--location $LOCATION
9191
```
9292

93-
## Use the Eureka Server for Spring Java component
93+
## Create the Eureka Server for Spring Java component
9494

9595
Now that you have an existing environment, you can create your container app and bind it to a Java component instance of Eureka Server for Spring.
9696

@@ -100,18 +100,20 @@ Now that you have an existing environment, you can create your container app and
100100
az containerapp env java-component eureka-server-for-spring create \
101101
--environment $ENVIRONMENT \
102102
--resource-group $RESOURCE_GROUP \
103-
--name $JAVA_COMPONENT_NAME
103+
--name $EUREKA_COMPONENT_NAME
104104
```
105105

106-
1. Update the Eureka Server for Spring Java component configuration.
106+
107+
1. Optional: Update the Eureka Server for Spring Java component configuration.
107108

108109
```azurecli
109110
az containerapp env java-component eureka-server-for-spring update \
110111
--environment $ENVIRONMENT \
111112
--resource-group $RESOURCE_GROUP \
112-
--name $JAVA_COMPONENT_NAME
113+
--name $EUREKA_COMPONENT_NAME
113114
--configuration eureka.server.renewal-percent-threshold=0.85 eureka.server.eviction-interval-timer-in-ms=10000
114115
```
116+
## Bind your container app to the Eureka Server for Spring Java component
115117

116118
1. Create the container app and bind to the Eureka Server for Spring.
117119

@@ -125,7 +127,7 @@ Now that you have an existing environment, you can create your container app and
125127
--max-replicas 1 \
126128
--ingress external \
127129
--target-port 8080 \
128-
--bind $JAVA_COMPONENT_NAME \
130+
--bind $EUREKA_COMPONENT_NAME \
129131
--query properties.configuration.ingress.fqdn
130132
```
131133

@@ -193,7 +195,7 @@ Now that you have an existing environment, you can create your container app and
193195
az containerapp env java-component eureka-server-for-spring show \
194196
--environment $ENVIRONMENT \
195197
--resource-group $RESOURCE_GROUP \
196-
--name $JAVA_COMPONENT_NAME \
198+
--name $EUREKA_COMPONENT_NAME \
197199
--query properties.ingress.fqdn -o tsv
198200
```
199201

0 commit comments

Comments
 (0)