Skip to content

Commit ed75443

Browse files
author
Wenhao Zhang
committed
Update format
1 parent b9c9f84 commit ed75443

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,13 @@ Follow the following steps to create the resource group, client container app an
138138
| Transport | *Auto* |
139139
| Target port | *8080* |
140140
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":::
142142
143143
1. Click *Create* after validation passed
144144
145145
---
146146
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.
148148
149149
## Create the Config Server for Spring Java component
150150
@@ -178,7 +178,7 @@ Now that you have an existing environment and config server client container app
178178

179179
1. Go to your container app environment page, select *Service* on the left panel, and then select *Configure*, *Java component*
180180

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":::
182182

183183
1. In new *Configure Java component* panel, select or enter the following values and leave others be the default, and then select *Next*
184184

@@ -187,10 +187,11 @@ Now that you have an existing environment and config server client container app
187187
| Java component type | *Config Server for Spring* |
188188
| Java component name | *configserver* |
189189

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+
191192
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*
192193

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":::
194195

195196
2. Click *Configure* on *Review* page
196197
---
@@ -237,7 +238,7 @@ Now that you have an existing environment and config server client container app
237238
3. Under bindings, select app *my-config-client*, Click *Next*
238239
4. Click *Configure*
239240

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":::
241242

242243
5. Go to your container app *my-config-client* page, get the *Application URL* of the container app
243244
---
@@ -263,24 +264,23 @@ Now that you have an existing environment and config server client container app
263264

264265
## Unbind your container app from the Config Server for Spring Java component
265266
# [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+
```
274275
# [Azure portal](#tab/azure-portal)
275276
1. Go to your container app environment page, select *Service* on the left panel
276277
2. Select *configserver* in Service list
277278
3. Under bindings, select app *my-config-client*, Click *Next*
278279
4. Click *Configure*
279280

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":::
282282
---
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`.
284284
285285
## Clean up resources
286286

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ Follow the following steps to create the resource group, client container app an
107107
| Region | *East US* |
108108
| Container Apps Environment | *my-environment* |
109109

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":::
111111

112-
1. In Container tab, select or enter the following values and leave others be the default.
112+
1. In *Container* tab, select or enter the following values and leave others be the default.
113113

114114
| Setting | Value |
115115
|---|---|
@@ -131,7 +131,7 @@ Follow the following steps to create the resource group, client container app an
131131
| Transport | *Auto* |
132132
| Target port | *8080* |
133133

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":::
135135

136136
1. Click *Create* after validation passed
137137

@@ -168,7 +168,7 @@ Now that you have an existing environment and eureka client container app, creat
168168

169169
1. Go to your container app environment page, select *Service* on the left panel, and then select *Configure*, *Java component*
170170

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":::
172172

173173
1. In new *Configure Java component* panel, select or enter the following values and leave others be the default, and then select *Next*
174174

@@ -177,8 +177,8 @@ Now that you have an existing environment and eureka client container app, creat
177177
| Java component type | *Eureka Server for Spring* |
178178
| Java component name | *eureka* |
179179

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+
182182
1. Click *Configure* on *Review* page
183183
---
184184

@@ -206,27 +206,27 @@ Now that you have an existing environment and eureka client container app, creat
206206
3. Under bindings, select app *sample-service-eureka-client*, Click *Next*
207207
4. Click *Configure*
208208

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":::
210210

211211
5. Go to your container app *sample-service-eureka-client* page, get the *Application URL* of the container app
212212
---
213213

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.
215215

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.
217217

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.
219219

220-
The binding also injects the following properties:
220+
The binding also injects the following properties:
221221

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+
```
226226

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.
228228

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.
230230

231231
## Unbind your container app from the Eureka Server for Spring Java component
232232

@@ -245,7 +245,7 @@ To remove a binding from a container app, use the `--unbind` option.
245245
3. Under bindings, select Delete after app *sample-service-eureka-client*, Click *Next*
246246
4. Click *Configure*
247247

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":::
249249

250250
---
251251

@@ -306,7 +306,7 @@ To remove a binding from a container app, use the `--unbind` option.
306306

307307
This command returns the URL you can use to access the Eureka Server for Spring dashboard. Through the dashboard, your container app is also to you as shown in the following screenshot.
308308

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":::
310310

311311
## Optional: Integrate the Eureka Server for Spring and Admin for Spring Java components
312312

0 commit comments

Comments
 (0)