Skip to content

Commit 9fea088

Browse files
Merge pull request #271396 from Descatles/wenhao/java-component-rename
Rename java components
2 parents 638b82f + 99df0a6 commit 9fea088

File tree

4 files changed

+76
-75
lines changed

4 files changed

+76
-75
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Configure settings for the Spring Cloud Config Server component in Azure Container Apps (preview)
3-
description: Learn how to configure a Spring Cloud Config Server component for your container app.
2+
title: Configure settings for the Config Server for Spring component in Azure Container Apps (preview)
3+
description: Learn how to configure a Config Server for Spring component for your container app.
44
services: container-apps
55
author: craigshoemaker
66
ms.service: container-apps
@@ -10,9 +10,9 @@ ms.date: 05/23/2024
1010
ms.author: cshoe
1111
---
1212

13-
# Configure settings for the Spring Cloud Config Server component in Azure Container Apps (preview)
13+
# Configure settings for the Config Server for Spring component in Azure Container Apps (preview)
1414

15-
Spring Cloud Config Server provides a centralized location to make configuration data available to multiple applications. Use the following guidance to learn how to configure and manage your Spring Cloud Config Server component.
15+
Config Server for Spring provides a centralized location to make configuration data available to multiple applications. Use the following guidance to learn how to configure and manage your Config Server for Spring component.
1616

1717
## Show
1818

@@ -21,7 +21,7 @@ You can view the details of an individual component by name using the `show` com
2121
Before you run the following command, replace placeholders surrounded by `<>` with your values.
2222

2323
```azurecli
24-
az containerapp env java-component spring-cloud-config show \
24+
az containerapp env java-component config-server-for-spring show \
2525
--environment <ENVIRONMENT_NAME> \
2626
--resource-group <RESOURCE_GROUP> \
2727
--name <JAVA_COMPONENT_NAME>
@@ -41,7 +41,7 @@ az containerapp env java-component list \
4141

4242
## Bind
4343

44-
Use the `--bind` parameter of the `update` command to create a connection between the Spring Cloud Config Server component and your container app.
44+
Use the `--bind` parameter of the `update` command to create a connection between the Config Server for Spring component and your container app.
4545

4646
Before you run the following command, replace placeholders surrounded by `<>` with your values.
4747

@@ -54,7 +54,7 @@ az containerapp update \
5454

5555
## Unbind
5656

57-
To break the connection between your container app and the Spring Cloud Config Server component, use the `--unbind` parameter of the `update` command.
57+
To break the connection between your container app and the Config Server for Spring component, use the `--unbind` parameter of the `update` command.
5858

5959
Before you run the following command, replace placeholders surrounded by `<>` with your values.
6060

@@ -67,7 +67,7 @@ az containerapp update \
6767

6868
## Configuration options
6969

70-
The `az containerapp update` command uses the `--configuration` parameter to control how the Spring Cloud Config Server is configured. You can use multiple parameters at once as long as they're separated by a space. You can find more details in [Spring Cloud Config Server](https://docs.spring.io/spring-cloud-config/docs/current/reference/html/#_spring_cloud_config_server) docs.
70+
The `az containerapp update` command uses the `--configuration` parameter to control how the Config Server for Spring is configured. You can use multiple parameters at once as long as they're separated by a space. You can find more details in [Spring Cloud Config Server](https://docs.spring.io/spring-cloud-config/docs/current/reference/html/#_spring_cloud_config_server) docs.
7171

7272
The following table lists the different configuration values available.
7373

@@ -123,7 +123,7 @@ The following table lists the different configuration values available.
123123

124124
## Refresh
125125

126-
Services that consume properties need to know about the change before it happens. The default notification method for Spring Cloud Config Server involves manually triggering the refresh event, such as refresh by call `https://<YOUR_CONFIG_CLIENT_HOST_NAME>/actuator/refresh`, which may not be feasible if there are many app instances.
126+
Services that consume properties need to know about the change before it happens. The default notification method for Config Server for Spring involves manually triggering the refresh event, such as refresh by call `https://<YOUR_CONFIG_CLIENT_HOST_NAME>/actuator/refresh`, which may not be feasible if there are many app instances.
127127

128128
Instead, you can automatically refresh values from Config Server by letting the config client poll for changes based on a refresh internal. Use the following steps to automatically refresh values from Config Server.
129129

@@ -196,12 +196,12 @@ By default, server-side encryption is enabled. Use the following steps to enable
196196
message={cipher}f43e3df3862ab196a4b367624a7d9b581e1c543610da353fbdd2477d60fb282f
197197
```
198198

199-
1. Update the Spring Cloud Config Server Java component to use the git repository that has the encrypted property and set the encryption key.
199+
1. Update the Config Server for Spring Java component to use the git repository that has the encrypted property and set the encryption key.
200200

201201
Before you run the following command, replace placeholders surrounded by `<>` with your values.
202202

203203
```azurecli
204-
az containerapp env java-component spring-cloud-config update \
204+
az containerapp env java-component config-server-for-spring update \
205205
--environment <ENVIRONMENT_NAME> \
206206
--resource-group <RESOURCE_GROUP> \
207207
--name <JAVA_COMPONENT_NAME> \
@@ -214,12 +214,12 @@ You can use client side decryption of properties by following the steps:
214214

215215
1. Add the encrypted property in your `*.properties*` file in your git repository.
216216

217-
1. Update the Spring Cloud Config Server Java component to use the git repository that has the encrypted property and disable server-side decryption.
217+
1. Update the Config Server for Spring Java component to use the git repository that has the encrypted property and disable server-side decryption.
218218

219219
Before you run the following command, replace placeholders surrounded by `<>` with your values.
220220

221221
```azurecli
222-
az containerapp env java-component spring-cloud-config update \
222+
az containerapp env java-component config-server-for-spring update \
223223
--environment <ENVIRONMENT_NAME> \
224224
--resource-group <RESOURCE_GROUP> \
225225
--name <JAVA_COMPONENT_NAME> \
@@ -247,4 +247,4 @@ You can use client side decryption of properties by following the steps:
247247
## Next steps
248248

249249
> [!div class="nextstepaction"]
250-
> [Tutorial: Connect to a managed Spring Cloud Config Server](java-config-server.md)
250+
> [Tutorial: Connect to a managed Config Server for Spring](java-config-server.md)

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

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: "Tutorial: Connect to a managed Spring Cloud Config Server in Azure Container Apps (preview)"
3-
description: Learn how to connect a Spring Cloud Config Server to your container app.
2+
title: "Tutorial: Connect to a managed Config Server for Spring in Azure Container Apps (preview)"
3+
description: Learn how to connect a Config Server for Spring to your container app.
44
services: container-apps
55
author: craigshoemaker
66
ms.service: container-apps
@@ -10,17 +10,17 @@ ms.date: 03/13/2024
1010
ms.author: cshoe
1111
---
1212

13-
# Tutorial: Connect to a managed Spring Cloud Config Server in Azure Container Apps (preview)
13+
# Tutorial: Connect to a managed Config Server for Spring in Azure Container Apps (preview)
1414

15-
Spring Cloud Config Server provides a centralized location to make configuration data available to multiple applications. In this article, you learn to connect an app hosted in Azure Container Apps to a Java Spring Cloud Config Server instance.
15+
Config Server for Spring provides a centralized location to make configuration data available to multiple applications. In this article, you learn to connect an app hosted in Azure Container Apps to a Java Config Server for Spring instance.
1616

17-
The Spring Cloud Config Server component uses a GitHub repository as the source for configuration settings. Configuration values are made available to your container app via a binding between the component and your container app. As values change in the configuration server, they automatically flow to your application, all without requiring you to recompile or redeploy your application.
17+
The Config Server for Spring component uses a GitHub repository as the source for configuration settings. Configuration values are made available to your container app via a binding between the component and your container app. As values change in the configuration server, they automatically flow to your application, all without requiring you to recompile or redeploy your application.
1818

1919
In this tutorial, you learn to:
2020

2121
> [!div class="checklist"]
22-
> * Create a Spring Cloud Config Server Java component
23-
> * Bind the Spring Cloud Config Server to your container app
22+
> * Create a Config Server for Spring Java component
23+
> * Bind the Config Server for Spring to your container app
2424
> * Observe configuration values before and after connecting the config server to your application
2525
> * Encrypt and decrypt configuration values with a symmetric key
2626
@@ -38,19 +38,19 @@ To complete this project, you need the following items:
3838

3939
## Considerations
4040

41-
When running in Spring Cloud Config Server in Azure Container Apps, be aware of the following details:
41+
When running in Config Server for Spring in Azure Container Apps, be aware of the following details:
4242

4343
| Item | Explanation |
4444
|---|---|
45-
| **Scope** | The Spring Cloud Config Server runs in the same environment as the connected container app. |
46-
| **Scaling** | To maintain a single source of truth, the Spring Cloud Config Server doesn't scale. The scaling properties `minReplicas` and `maxReplicas` are both set to `1`. |
47-
| **Resources** | The container resource allocation for Spring Cloud Config Server is fixed, the number of the CPU cores is 0.5, and the memory size is 1Gi. |
48-
| **Pricing** | The Spring Cloud Config Server billing falls under consumption-based pricing. Resources consumed by managed Java components are billed at the active/idle rates. You may delete components that are no longer in use to stop billing. |
49-
| **Binding** | The container app connects to a Spring Cloud Config Server via a binding. The binding injects configurations into container app environment variables. Once a binding is established, the container app can read configuration values from environment variables. |
45+
| **Scope** | The Config Server for Spring runs in the same environment as the connected container app. |
46+
| **Scaling** | To maintain a single source of truth, the Config Server for Spring doesn't scale. The scaling properties `minReplicas` and `maxReplicas` are both set to `1`. |
47+
| **Resources** | The container resource allocation for Config Server for Spring is fixed, the number of the CPU cores is 0.5, and the memory size is 1Gi. |
48+
| **Pricing** | The Config Server for Spring billing falls under consumption-based pricing. Resources consumed by managed Java components are billed at the active/idle rates. You may delete components that are no longer in use to stop billing. |
49+
| **Binding** | The container app connects to a Config Server for Spring via a binding. The binding injects configurations into container app environment variables. Once a binding is established, the container app can read configuration values from environment variables. |
5050

5151
## Setup
5252

53-
Before you begin to work with the Spring Cloud Config Server, you first need to create the required resources.
53+
Before you begin to work with the Config Server for Spring, you first need to create the required resources.
5454

5555
Execute the following commands to create your resource group and Container Apps environment.
5656

@@ -71,7 +71,7 @@ Execute the following commands to create your resource group and Container Apps
7171
| `LOCATION` | The Azure region location where you create your container app and Java component. |
7272
| `ENVIRONMENT` | The Azure Container Apps environment name for your demo application. |
7373
| `RESOURCE_GROUP` | The Azure resource group name for your demo application. |
74-
| `JAVA_COMPONENT_NAME` | The name of the Java component created for your container app. In this case, you create a Spring Cloud Config Server Java component. |
74+
| `JAVA_COMPONENT_NAME` | The name of the Java component created for your container app. In this case, you create a Config Server for Spring Java component. |
7575
| `IMAGE` | The container image used in your container app. |
7676
| `URI` | You can replace the URI with your git repo url, if it's private, add the related authentication configurations such as `spring.cloud.config.server.git.username` and `spring.cloud.config.server.git.password`. |
7777
@@ -96,26 +96,26 @@ Execute the following commands to create your resource group and Container Apps
9696
--location $LOCATION
9797
```
9898
99-
This environment is used to host both the Spring Cloud Config Server component and your container app.
99+
This environment is used to host both the Config Server for Spring component and your container app.
100100
101-
## Use the Spring Cloud Config Server Java component
101+
## Use the Config Server for Spring Java component
102102
103-
Now that you have a Container Apps environment, you can create your container app and bind it to a Spring Cloud Config Server component. When you bind your container app, configuration values automatically synchronize from the Config Server component to your application.
103+
Now that you have a Container Apps environment, you can create your container app and bind it to a Config Server for Spring component. When you bind your container app, configuration values automatically synchronize from the Config Server component to your application.
104104
105-
1. Create the Spring Cloud Config Server Java component.
105+
1. Create the Config Server for Spring Java component.
106106
107107
```azurecli
108-
az containerapp env java-component spring-cloud-config create \
108+
az containerapp env java-component config-server-for-spring create \
109109
--environment $ENVIRONMENT \
110110
--resource-group $RESOURCE_GROUP \
111111
--name $JAVA_COMPONENT_NAME \
112112
--configuration spring.cloud.config.server.git.uri=$URI
113113
```
114114
115-
1. Update the Spring Cloud Config Server Java component.
115+
1. Update the Config Server for Spring Java component.
116116
117117
```azurecli
118-
az containerapp env java-component spring-cloud-config update \
118+
az containerapp env java-component config-server-for-spring update \
119119
--environment $ENVIRONMENT \
120120
--resource-group $RESOURCE_GROUP \
121121
--name $JAVA_COMPONENT_NAME \
@@ -143,7 +143,7 @@ Now that you have a Container Apps environment, you can create your container ap
143143

144144
If you visit your app in a browser, the `connectTimeout` value returned is the default value of `0`.
145145

146-
1. Bind to the Spring Cloud Config Server.
146+
1. Bind to the Config Server for Spring.
147147

148148
Now that the container app and Config Server are created, you bind them together with the `update` command to your container app.
149149

@@ -174,7 +174,7 @@ Now that you have a Container Apps environment, you can create your container ap
174174

175175
You can also remove a binding from your application.
176176

177-
1. Unbind the Spring Cloud Config Server Java component.
177+
1. Unbind the Config Server for Spring Java component.
178178

179179
To remove a binding from a container app, use the `--unbind` option.
180180

@@ -199,4 +199,5 @@ az group delete \
199199
## Next steps
200200

201201
> [!div class="nextstepaction"]
202-
> [Customize Spring Cloud Config Server settings](java-config-server-usage.md)
202+
> [Customize Config Server for Spring settings](java-config-server-usage.md)
203+

0 commit comments

Comments
 (0)