Skip to content

Commit 706fdf8

Browse files
committed
edits
1 parent 2cc0fa5 commit 706fdf8

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

articles/aks/howto-deploy-java-liberty-app.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The Open Liberty Operator simplifies the deployment and management of applicatio
2323

2424
For more information on Open Liberty, see [the Open Liberty project page](https://openliberty.io/). For more information on IBM WebSphere Liberty, see [the WebSphere Liberty product page](https://www.ibm.com/cloud/websphere-liberty).
2525

26-
This article uses the Azure Marketplace offer for Open/WebSphere Liberty to accelerate your journey to AKS. The offer automatically provisions a number of Azure resources including an Azure Container Registry (ACR) instance, an AKS cluster, an Azure App Gateway Ingress Controller (AGIC) instance, the Liberty Operator and optionally a container image including Liberty and your application. To see the offer visit the [portal](https://aka.ms/liberty-aks). If you prefer manual step-by-step guidance for running Liberty on AKS that doesn't utilize the automations enabled by the offer, see [Manually deploy a Java application with Open Liberty or WebSphere Liberty on an Azure Kubernetes Service (AKS) cluster](/azure/developer/java/ee/howto-deploy-java-liberty-app-manual).
26+
This article uses the Azure Marketplace offer for Open/WebSphere Liberty to accelerate your journey to AKS. The offer automatically provisions a number of Azure resources including an Azure Container Registry (ACR) instance, an AKS cluster, an Azure App Gateway Ingress Controller (AGIC) instance, the Liberty Operator, and optionally a container image including Liberty and your application. To see the offer, visit the [Azure portal](https://aka.ms/liberty-aks). If you prefer manual step-by-step guidance for running Liberty on AKS that doesn't utilize the automation enabled by the offer, see [Manually deploy a Java application with Open Liberty or WebSphere Liberty on an Azure Kubernetes Service (AKS) cluster](/azure/developer/java/ee/howto-deploy-java-liberty-app-manual).
2727

2828
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
2929

@@ -35,13 +35,13 @@ This article uses the Azure Marketplace offer for Open/WebSphere Liberty to acce
3535
* Install a Java SE implementation (for example, [Eclipse Open J9](https://www.eclipse.org/openj9/)).
3636
* Install [Maven](https://maven.apache.org/download.cgi) 3.5.0 or higher.
3737
* Install [Docker](https://docs.docker.com/get-docker/) for your OS.
38-
* Make sure you have been assigned either `Owner` role or `Contributor` and `User Access Administrator` roles in the subscription. You can verify it by following steps in [List role assignments for a user or group](../role-based-access-control/role-assignments-list-portal.md#list-role-assignments-for-a-user-or-group)
38+
* Make sure you have been assigned either the `Owner` role or the `Contributor` and `User Access Administrator` roles in the subscription. You can verify it by following steps in [List role assignments for a user or group](../role-based-access-control/role-assignments-list-portal.md#list-role-assignments-for-a-user-or-group).
3939

4040
## Create a Liberty on AKS deployment using the portal
4141

42-
The steps in this section guide you to create a Liberty runtime on AKS. After completing these steps, you'll have an Azure Container Registry and an Azure Kubernetes Service cluster for the sample application.
42+
The following steps guide you to create a Liberty runtime on AKS. After completing these steps, you'll have an Azure Container Registry and an Azure Kubernetes Service cluster for the sample application.
4343

44-
1. Visit the [Azure portal](https://portal.azure.com/). In the search box at the top of the page, type *IBM WebSphere Liberty and Open Liberty on Azure Kubernetes Service*. When the suggestions start appearing, select the one and only match that appears in the **Marketplace** section. If you prefer, you can go directly to the offer with this shortcut link, [https://aka.ms/liberty-aks](https://aka.ms/liberty-aks).
44+
1. Visit the [Azure portal](https://portal.azure.com/). In the search box at the top of the page, type *IBM WebSphere Liberty and Open Liberty on Azure Kubernetes Service*. When the suggestions start appearing, select the one and only match that appears in the **Marketplace** section. If you prefer, you can go directly to the offer with this shortcut link: [https://aka.ms/liberty-aks](https://aka.ms/liberty-aks).
4545
1. Select **Create**.
4646
1. In the **Basics** pane, create a new resource group. Because resource groups must be unique within a subscription, pick a unique name. An easy way to have unique names is to use a combination of your initials, today's date, and some identifier. For example, `ejb0913-java-liberty-project-rg`.
4747
1. Select *East US* as **Region**.
@@ -77,12 +77,12 @@ If you navigated away from the **Deployment is in progress** page, the following
7777

7878
## Create an Azure SQL Database
7979

80-
The steps in this section guide you through creating an Azure SQL Database single database for use with your app.
80+
The following steps guide you through creating an Azure SQL Database single database for use with your app.
8181

8282
1. Create a single database in Azure SQL Database by following the steps in [Quickstart: Create an Azure SQL Database single database](/azure/azure-sql/database/single-database-create-quickstart), carefully noting the differences in the box below. Return to this article after creating and configuring the database server.
8383

8484
> [!NOTE]
85-
> At the **Basics** step, write down **Resource group**, **Database name**, ***Server name**.database.windows.net*, **Server admin login** and **Password**. The database **Resource group** will be referred to as `<db-resource-group>` later in this article.
85+
> At the **Basics** step, write down **Resource group**, **Database name**, **_<server-name>_.database.windows.net**, **Server admin login**, and **Password**. The database **Resource group** will be referred to as `<db-resource-group>` later in this article.
8686
>
8787
> At the **Networking** step, set **Connectivity method** to **Public endpoint**, **Allow Azure services and resources to access this server** to **Yes**, and **Add current client IP address** to **Yes**.
8888
>
@@ -101,6 +101,7 @@ Follow the steps in this section to deploy the sample application on the Liberty
101101
### Check out the application
102102

103103
Clone the sample code for this guide. The sample is on [GitHub](https://github.com/Azure-Samples/open-liberty-on-aks).
104+
104105
There are a few samples in the repository. We'll use *java-app/*. Here's the file structure of the application.
105106

106107
```
@@ -128,7 +129,7 @@ In the *aks* directory, we placed two deployment files. *db-secret.xml* is used
128129

129130
In the *docker* directory, we placed four Dockerfiles. *Dockerfile-local* is used for local debugging, and *Dockerfile* is used to build the image for an AKS deployment. These two files work with Open Liberty. *Dockerfile-wlp-local* and *Dockerfile-wlp* are also used for local debugging and to build the image for an AKS deployment respectively, but instead work with WebSphere Liberty.
130131

131-
In directory *liberty/config*, the *server.xml* is used to configure the DB connection for the Open Liberty and WebSphere Liberty cluster.
132+
In directory *liberty/config*, the *server.xml* FILE is used to configure the DB connection for the Open Liberty and WebSphere Liberty cluster.
132133

133134
### Acquire necessary variables from AKS deployment
134135

@@ -140,7 +141,7 @@ After the offer is successfully deployed, an AKS cluster will be generated autom
140141
echo <appDeploymentTemplateYamlEncoded> | base64 -d
141142
```
142143

143-
1. Save the `metadata.namespace` from this yaml output aside for later use in this article.
144+
1. Save aside the `metadata.namespace` from this yaml output for later use in this article.
144145

145146
### Build the project
146147

@@ -178,10 +179,10 @@ In the sample application, we've prepared *Dockerfile-local* and *Dockerfile-wlp
178179
```bash
179180
cd <path-to-your-repo>/java-app
180181

181-
# If you are running with Open Liberty
182+
# If you're running with Open Liberty
182183
mvn liberty:devc -Ddb.server.name=${DB_SERVER_NAME} -Ddb.port.number=${DB_PORT_NUMBER} -Ddb.name=${DB_NAME} -Ddb.user=${DB_USER} -Ddb.password=${DB_PASSWORD} -Ddockerfile=target/Dockerfile-local
183184

184-
# If you are running with WebSphere Liberty
185+
# If you're running with WebSphere Liberty
185186
mvn liberty:devc -Ddb.server.name=${DB_SERVER_NAME} -Ddb.port.number=${DB_PORT_NUMBER} -Ddb.name=${DB_NAME} -Ddb.user=${DB_USER} -Ddb.password=${DB_PASSWORD} -Ddockerfile=target/Dockerfile-wlp-local
186187
```
187188

@@ -221,13 +222,13 @@ docker push ${LOGIN_SERVER}/${IMAGE_NAME}:${IMAGE_VERSION}
221222

222223
### Deploy and test the application
223224

224-
The steps in this section deploy and test the application.
225+
The following steps deploy and test the application.
225226

226-
1. Connect to the AKS cluster
227+
1. Connect to the AKS cluster.
227228

228229
Paste the value of **cmdToConnectToCluster** into a bash shell.
229230

230-
1. Apply the DB secret
231+
1. Apply the DB secret.
231232

232233
```bash
233234
cd <path-to-your-repo>/java-app/target
@@ -236,13 +237,13 @@ The steps in this section deploy and test the application.
236237

237238
You'll see the output `secret/db-secret-postgres created`.
238239

239-
1. Apply the deployment file
240+
1. Apply the deployment file.
240241

241242
```bash
242243
kubectl apply -f openlibertyapplication.yaml
243244
```
244245

245-
1. Wait for the pods to be restarted
246+
1. Wait for the pods to be restarted.
246247

247248
Wait until all pods are restarted successfully using the following command.
248249

@@ -259,7 +260,7 @@ The steps in this section deploy and test the application.
259260
javaee-cafe-cluster-67cdc95bc-h47qm 1/1 Running 0 29s
260261
```
261262

262-
1. Verify the results
263+
1. Verify the results.
263264

264265
1. Get endpoint of the deployed service
265266

0 commit comments

Comments
 (0)