Skip to content

Commit ee61e57

Browse files
committed
On branch edburns-msft-dd-1598830-liberty-aks-emphasize-marketplace Address comments from PM
modified: articles/aks/howto-deploy-java-liberty-app.md deleted: articles/aks/includes/portal-find-resource-group.md modified: articles/aks/media/howto-deploy-java-liberty-app/enable-cookie-based-affinity.png modified: articles/aks/media/howto-deploy-java-liberty-app/sql-database-minimum-tls-version.png Signed-off-by: Ed Burns <[email protected]>
1 parent 58565d1 commit ee61e57

File tree

4 files changed

+13
-17
lines changed

4 files changed

+13
-17
lines changed

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

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ 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 `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)
3939

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

@@ -57,7 +57,10 @@ The steps in this section guide you to create a Liberty runtime on AKS. After co
5757

5858
## Capture selected information from the deployment
5959

60-
[!INCLUDE [portal-find-resource-group](includes/portal-find-resource-group.md)]
60+
If you navigated away from the **Deployment is in progress** page, the following steps will show you how to get back to that page. If you're still on the page that shows **Your deployment is complete**, you can skip to the third step.
61+
62+
1. In the upper left of any portal page, select the hamburger menu and select **Resource groups**.
63+
1. In the box with the text **Filter for any field**, enter the first few characters of the resource group you created previously. If you followed the recommended convention, enter your initials, then select the appropriate resource group.
6164
1. In the list of resources in the resource group, select the resource with **Type** of **Container registry**.
6265
1. In the navigation pane, under **Settings** select **Access keys**.
6366
1. Save aside the values for **Login server**, **Registry name**, **Username**, and **password**. You may use the copy icon at the right of each field to copy the value of that field to the system clipboard.
@@ -72,6 +75,8 @@ The steps in this section guide you to create a Liberty runtime on AKS. After co
7275

7376
These values will be used later in this article. Note that several other useful commands are listed in the outputs.
7477

78+
## Create an Azure SQL Database
79+
7580
The steps in this section guide you through creating an Azure SQL Database single database for use with your app.
7681

7782
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 document after creating and configuring the database server.
@@ -141,7 +146,7 @@ After the offer is successfully deployed, an AKS cluster will be generated autom
141146

142147
Now that you've gathered the necessary properties, you can build the application. The POM file for the project reads many properties from the environment.
143148

144-
### RR: We are doing quite a bit of file and parameter manipulation in the Maven build, which is fine but not explained anywhere and not necessarily appropriate for a legacy project. We need to explain what we are doing either here or in the Maven POM as comments (and make a reference here).
149+
Now that you've gathered the necessary properties, you can build the application. The POM file for the project reads many properties from the environment. The reason for this parameterization is to avoid having to hard-code values such as database server names, passwords, and other identifiers into the example source code. This allows the sample source code to be easier to use in a wider variety of contexts.
145150

146151
```bash
147152
cd <path-to-your-repo>/java-app
@@ -225,15 +230,16 @@ The steps in this section deploy and test the application.
225230
1. Apply the DB secret
226231

227232
```bash
228-
kubectl apply -f <path-to-your-repo>/java-app/target/db-secret.yaml
233+
cd <path-to-your-repo>/java-app/target
234+
kubectl apply -f db-secret.yaml
229235
```
230236

231237
You'll see the output `secret/db-secret-postgres created`.
232238

233239
1. Apply the deployment file
234240

235241
```bash
236-
kubectl apply -f <path-to-your-repo>/java-app/target/openlibertyapplication.yaml
242+
kubectl apply -f openlibertyapplication.yaml
237243
```
238244

239245
1. Wait for the pods to be restarted
@@ -268,7 +274,8 @@ The steps in this section deploy and test the application.
268274
To avoid Azure charges, you should clean up unnecessary resources. When the cluster is no longer needed, use the [az group delete](/cli/azure/group#az-group-delete) command to remove the resource group, container service, container registry, and all related resources.
269275

270276
```azurecli-interactive
271-
az group delete --name <RESOURCE_GROUP_NAME> --yes --no-wait
277+
az group delete --name $RESOURCE_GROUP_NAME --yes --no-wait
278+
az group delete --name <db-resource-group> --yes --no-wait
272279
```
273280

274281
## Next steps

articles/aks/includes/portal-find-resource-group.md

Lines changed: 0 additions & 11 deletions
This file was deleted.
-10.4 KB
Loading
-35.4 KB
Loading

0 commit comments

Comments
 (0)