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/java-config-server.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,13 +138,13 @@ Follow the following steps to create the resource group, client container app an
138
138
| Transport | *Auto* |
139
139
| Target port | *8080* |
140
140
141
-
:::image type="content" source="media/java-components/config-ingress.png" alt-text="Screenshot of config ingress when create container apps." lightbox="media/java-components/config-ingress.png":::
141
+
:::image type="content" source="media/java-components/config-ingress.png" alt-text="Screenshot of config ingress when create container apps." lightbox="media/java-components/config-ingress.png":::
142
142
143
143
1. Click *Create* after validation passed
144
144
145
145
---
146
146
147
-
This environment is used to host both the Config Server for Spring component and your container app.
147
+
This environment is used to host both the Config Server for Spring component and your container app.
148
148
149
149
## Create the Config Server for Spring Java component
150
150
@@ -178,7 +178,7 @@ Now that you have an existing environment and config server client container app
178
178
179
179
1. Go to your container app environment page, select*Service* on the left panel, and thenselect*Configure*,*Java component*
180
180
181
-
:::image type="content" source="media/java-components/select-java-component.png" alt-text="Screenshot of how to select Java component." lightbox="media/java-components/select-java-component.png":::
181
+
:::image type="content" source="media/java-components/select-java-component.png" alt-text="Screenshot of how to select Java component." lightbox="media/java-components/select-java-component.png":::
182
182
183
183
1. In new *Configure Java component* panel, selector enter the following values and leave others be the default, and thenselect*Next*
184
184
@@ -187,10 +187,11 @@ Now that you have an existing environment and config server client container app
187
187
| Java component type|*Config Server for Spring*|
188
188
| Java component name |*configserver*|
189
189
190
-
:::image type="content" source="media/java-components/create-config-server-java-component.png" alt-text="Screenshot of how to select Java component." lightbox="media/java-components/create-config-server-java-component.png":::
190
+
:::image type="content" source="media/java-components/create-config-server-java-component.png" alt-text="Screenshot of how to select Java component." lightbox="media/java-components/create-config-server-java-component.png":::
191
+
191
192
1. Select *Add* under *Git repositories*, Enter *URI* value *https://github.com/Azure-Samples/azure-spring-cloud-config-java-aca.git* under Add Git repository, select*Add*
192
193
193
-
:::image type="content" source="media/java-components/configure-git-uri.png" alt-text="Screenshot of how to configure config server git uri." lightbox="media/java-components/configure-git-uri.png":::
194
+
:::image type="content" source="media/java-components/configure-git-uri.png" alt-text="Screenshot of how to configure config server git uri." lightbox="media/java-components/configure-git-uri.png":::
194
195
195
196
2. Click *Configure* on *Review* page
196
197
---
@@ -237,7 +238,7 @@ Now that you have an existing environment and config server client container app
237
238
3. Under bindings, selectapp*my-config-client*, Click *Next*
238
239
4. Click *Configure*
239
240
240
-
:::image type="content" source="media/java-components/app-bind-configserver.png" alt-text="Screenshot of container app bind with config server." lightbox="media/java-components/app-bind-configserver.png":::
241
+
:::image type="content" source="media/java-components/app-bind-configserver.png" alt-text="Screenshot of container app bind with config server." lightbox="media/java-components/app-bind-configserver.png":::
241
242
242
243
5. Go to your container app *my-config-client* page, get the *Application URL* of the container app
243
244
---
@@ -263,24 +264,23 @@ Now that you have an existing environment and config server client container app
263
264
264
265
## Unbind your container app from the Config Server for Spring Java component
265
266
# [Azure CLI](#tab/azure-cli)
266
-
To remove a binding from a container app, use the `--unbind` option.
267
-
268
-
``` azurecli
269
-
az containerapp update \
270
-
--name $APP_NAME \
271
-
--unbind $JAVA_COMPONENT_NAME \
272
-
--resource-group $RESOURCE_GROUP
273
-
```
267
+
To remove a binding from a container app, use the `--unbind` option.
268
+
269
+
``` azurecli
270
+
az containerapp update \
271
+
--name $APP_NAME \
272
+
--unbind $JAVA_COMPONENT_NAME \
273
+
--resource-group $RESOURCE_GROUP
274
+
```
274
275
# [Azure portal](#tab/azure-portal)
275
276
1. Go to your container app environment page, select*Service* on the left panel
276
277
2. Select *configserver*in Service list
277
278
3. Under bindings, selectapp*my-config-client*, Click *Next*
278
279
4. Click *Configure*
279
280
280
-
:::image type="content" source="media/java-components/app-unbind-configserver.png" alt-text="Screenshot of container app unbind with config server." lightbox="media/java-components/app-unbind-configserver.png":::
281
-
281
+
:::image type="content" source="media/java-components/app-unbind-configserver.png" alt-text="Screenshot of container app unbind with config server." lightbox="media/java-components/app-unbind-configserver.png":::
282
282
---
283
-
When you visit the app's URL again, the value of `connectTimeout` changes to back to `0`.
283
+
When you visit the app's URL again, the value of `connectTimeout` changes to back to `0`.
Copy file name to clipboardExpand all lines: articles/container-apps/java-eureka-server.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,9 +107,9 @@ Follow the following steps to create the resource group, client container app an
107
107
| Region |*East US*|
108
108
| Container Apps Environment |*my-environment*|
109
109
110
-
:::image type="content" source="media/java-components/create-containerapp-eureka.png" alt-text="Screenshot of create container apps." lightbox="media/java-components/create-containerapp-eureka.png":::
110
+
:::image type="content" source="media/java-components/create-containerapp-eureka.png" alt-text="Screenshot of create container apps." lightbox="media/java-components/create-containerapp-eureka.png":::
111
111
112
-
1. In Container tab, selector enter the following values and leave others be the default.
112
+
1. In *Container* tab, selector enter the following values and leave others be the default.
113
113
114
114
| Setting | Value |
115
115
|---|---|
@@ -131,7 +131,7 @@ Follow the following steps to create the resource group, client container app an
131
131
| Transport |*Auto*|
132
132
| Target port |*8080*|
133
133
134
-
:::image type="content" source="media/java-components/config-ingress.png" alt-text="Screenshot of config ingress when create container apps." lightbox="media/java-components/config-ingress.png":::
134
+
:::image type="content" source="media/java-components/config-ingress.png" alt-text="Screenshot of config ingress when create container apps." lightbox="media/java-components/config-ingress.png":::
135
135
136
136
1. Click *Create* after validation passed
137
137
@@ -168,7 +168,7 @@ Now that you have an existing environment and eureka client container app, creat
168
168
169
169
1. Go to your container app environment page, select*Service* on the left panel, and thenselect*Configure*,*Java component*
170
170
171
-
:::image type="content" source="media/java-components/select-java-component.png" alt-text="Screenshot of how to select Java component." lightbox="media/java-components/select-java-component.png":::
171
+
:::image type="content" source="media/java-components/select-java-component.png" alt-text="Screenshot of how to select Java component." lightbox="media/java-components/select-java-component.png":::
172
172
173
173
1. In new *Configure Java component* panel, selector enter the following values and leave others be the default, and thenselect*Next*
174
174
@@ -177,8 +177,8 @@ Now that you have an existing environment and eureka client container app, creat
177
177
| Java component type|*Eureka Server for Spring*|
178
178
| Java component name |*eureka*|
179
179
180
-
:::image type="content" source="media/java-components/create-eureka-java-component.png" alt-text="Screenshot of how to select Java component." lightbox="media/java-components/create-eureka-java-component.png":::
181
-
180
+
:::image type="content" source="media/java-components/create-eureka-java-component.png" alt-text="Screenshot of how to create Eureka Java component." lightbox="media/java-components/create-eureka-java-component.png":::
181
+
182
182
1. Click *Configure* on *Review* page
183
183
---
184
184
@@ -206,27 +206,27 @@ Now that you have an existing environment and eureka client container app, creat
206
206
3. Under bindings, selectapp*sample-service-eureka-client*, Click *Next*
207
207
4. Click *Configure*
208
208
209
-
:::image type="content" source="media/java-components/app-bind-eureka.png" alt-text="Screenshot of container app bind with eureka." lightbox="media/java-components/app-bind-eureka.png":::
209
+
:::image type="content" source="media/java-components/app-bind-eureka.png" alt-text="Screenshot of container app bind with eureka." lightbox="media/java-components/app-bind-eureka.png":::
210
210
211
211
5. Go to your container app *sample-service-eureka-client* page, get the *Application URL* of the container app
212
212
---
213
213
214
-
After you get the URL of the container app. Copy the URL to a text editor so you can use it in a coming step.
214
+
After you get the URL of the container app. Copy the URL to a text editor so you can use it in a coming step.
215
215
216
-
Navigate to the `/allRegistrationStatus` route to view all applications registered with the Eureka Server for Spring.
216
+
Navigate to the `/allRegistrationStatus` route to view all applications registered with the Eureka Server for Spring.
217
217
218
-
The binding injects several configurations into the application as environment variables, primarily the `eureka.client.service-url.defaultZone` property. This property indicates the internal endpoint of the Eureka Server Java component.
218
+
The binding injects several configurations into the application as environment variables, primarily the `eureka.client.service-url.defaultZone` property. This property indicates the internal endpoint of the Eureka Server Java component.
219
219
220
-
The binding also injects the following properties:
220
+
The binding also injects the following properties:
221
221
222
-
```bash
223
-
"eureka.client.register-with-eureka": "true"
224
-
"eureka.instance.prefer-ip-address": "true"
225
-
```
222
+
```bash
223
+
"eureka.client.register-with-eureka": "true"
224
+
"eureka.instance.prefer-ip-address": "true"
225
+
```
226
226
227
-
The `eureka.client.register-with-eureka` property is set to `true` to enforce registration with the Eureka server. This registration overwrites the local setting in`application.properties`, from the config server and so on. If you want to set it to `false`, you can overwrite it by setting an environment variable in your container app.
227
+
The `eureka.client.register-with-eureka` property is set to `true` to enforce registration with the Eureka server. This registration overwrites the local setting in`application.properties`, from the config server and so on. If you want to set it to `false`, you can overwrite it by setting an environment variable in your container app.
228
228
229
-
The `eureka.instance.prefer-ip-address` is set to `true` due to the specific DNS resolution rule in the container app environment. Don't modify this value so you don't break the binding.
229
+
The `eureka.instance.prefer-ip-address` is set to `true` due to the specific DNS resolution rule in the container app environment. Don't modify this value so you don't break the binding.
230
230
231
231
## Unbind your container app from the Eureka Server for Spring Java component
232
232
@@ -245,7 +245,7 @@ To remove a binding from a container app, use the `--unbind` option.
245
245
3. Under bindings, selectDelete after app *sample-service-eureka-client*, Click *Next*
246
246
4. Click *Configure*
247
247
248
-
:::image type="content" source="media/java-components/app-unbind-eureka.png" alt-text="Screenshot of container app unbind with eureka." lightbox="media/java-components/app-unbind-eureka.png":::
248
+
:::image type="content" source="media/java-components/app-unbind-eureka.png" alt-text="Screenshot of container app unbind with eureka." lightbox="media/java-components/app-unbind-eureka.png":::
249
249
250
250
---
251
251
@@ -306,7 +306,7 @@ To remove a binding from a container app, use the `--unbind` option.
306
306
307
307
This command returns the URL you can use to access the Eureka Server forSpring dashboard. Through the dashboard, your container app is also to you as shownin the following screenshot.
308
308
309
-
:::image type="content" source="media/java-components/eureka-alone.png" alt-text="Screenshot of the Eureka Server for Spring dashboard." lightbox="media/java-components/eureka-alone.png":::
309
+
:::image type="content" source="media/java-components/eureka-alone.png" alt-text="Screenshot of the Eureka Server for Spring dashboard." lightbox="media/java-components/eureka-alone.png":::
310
310
311
311
## Optional: Integrate the Eureka Server for Spring and Admin for Spring Java components
0 commit comments