Skip to content

Commit 360e280

Browse files
Merge pull request #280380 from KarlErickson/karler-fix
edits
2 parents 855cfcc + f29402c commit 360e280

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ This article shows you how to quickly deploy Red Hat Quarkus on Azure Kubernetes
1818
## Prerequisites
1919

2020
- [!INCLUDE [quickstarts-free-trial-note](~/reusable-content/ce-skilling/azure/includes/quickstarts-free-trial-note.md)]
21-
- Prepare a local machine with Unix-like operating system installed (for example, Ubuntu, macOS, or Windows Subsystem for Linux).
22-
- Install a Java SE implementation version 17 or later (for example, [Microsoft build of OpenJDK](/java/openjdk)).
23-
- Install [Maven](https://maven.apache.org/download.cgi) 3.9.8 or higher.
21+
- Prepare a local machine with Unix-like operating system installed - for example, Ubuntu, macOS, or Windows Subsystem for Linux.
22+
- Install a Java SE implementation version 17 or later - for example, [Microsoft build of OpenJDK](/java/openjdk).
23+
- Install [Maven](https://maven.apache.org/download.cgi), version 3.9.8 or higher.
2424
- Install [Docker](https://docs.docker.com/get-docker/) or [Podman](https://podman.io/docs/installation) for your OS.
2525
- Install [jq](https://jqlang.github.io/jq/download/).
2626
- Install [cURL](https://curl.se/download.html).
27-
- Install the [Quarkus CLI](https://quarkus.io/guides/cli-tooling) 3.12.1 or higher.
27+
- Install the [Quarkus CLI](https://quarkus.io/guides/cli-tooling), version 3.12.1 or higher.
2828
- Azure CLI for Unix-like environments. This article requires only the Bash variant of Azure CLI.
2929
- [!INCLUDE [azure-cli-login](~/reusable-content/ce-skilling/azure/includes/azure-cli-login.md)]
3030
- This article requires at least version 2.61.0 of Azure CLI.
@@ -156,17 +156,17 @@ The steps in this section show you how to create the following Azure resources t
156156
- Azure Container Registry (ACR)
157157
- Azure Kubernetes Service (AKS)
158158

159-
Some of these resources must have unique names within the scope of the Azure subscription. To ensure this uniqueness, you can use the *initials, sequence, date, suffix* pattern. To apply this pattern, name your resources by listing your initials, some sequence number, today's date, and some kind of resource specific suffix - for example, `rg` for "resource group". The following environment variables use this pattern. Replace the placeholder values in `UNIQUE_VALUE`, `LOCATION` and `DB_PASSWORD` with your own values and run the commands in your terminal:
159+
Some of these resources must have unique names within the scope of the Azure subscription. To ensure this uniqueness, you can use the *initials, sequence, date, suffix* pattern. To apply this pattern, name your resources by listing your initials, some sequence number, today's date, and some kind of resource specific suffix - for example, `rg` for "resource group". The following environment variables use this pattern. Replace the placeholder values `UNIQUE_VALUE`, `LOCATION`, and `DB_PASSWORD` with your own values and then run the following commands in your terminal:
160160

161161
```bash
162162
export UNIQUE_VALUE=<your unique value, such as ejb010717>
163163
export RESOURCE_GROUP_NAME=${UNIQUE_VALUE}rg
164-
export LOCATION=<your desired Azure region for deploying your resources. For example, northeurope>
164+
export LOCATION=<your desired Azure region for deploying your resources - for example, northeurope>
165165
export REGISTRY_NAME=${UNIQUE_VALUE}reg
166166
export DB_SERVER_NAME=${UNIQUE_VALUE}db
167167
export DB_NAME=demodb
168168
export DB_ADMIN=demouser
169-
export DB_PASSWORD='<your desired password for the database server. For example, Secret123456>'
169+
export DB_PASSWORD='<your desired password for the database server - for example, Secret123456>'
170170
export CLUSTER_NAME=${UNIQUE_VALUE}aks
171171
export AKS_NS=${UNIQUE_VALUE}ns
172172
```
@@ -175,17 +175,17 @@ export AKS_NS=${UNIQUE_VALUE}ns
175175

176176
Azure Database for PostgreSQL Flexible Server is a fully managed database service designed to provide more granular control and flexibility over database management functions and configuration settings. This section shows you how to create an Azure Database for PostgreSQL Flexible Server instance using the Azure CLI. For more information, see [Quickstart: Create an Azure Database for PostgreSQL - Flexible Server instance using Azure CLI](/azure/postgresql/flexible-server/quickstart-create-server-cli).
177177

178-
First, create a resource group to contain the database server and other resources:
178+
First, create a resource group to contain the database server and other resources by using the following command:
179179

180-
```azurecli-interactive
180+
```azurecli
181181
az group create \
182182
--name $RESOURCE_GROUP_NAME \
183183
--location $LOCATION
184184
```
185185

186-
Next, create an Azure Database for PostgreSQL flexible server instance with the `az postgres flexible-server create` command.
186+
Next, create an Azure Database for PostgreSQL flexible server instance by using the following command:
187187

188-
```azurecli-interactive
188+
```azurecli
189189
az postgres flexible-server create \
190190
--name $DB_SERVER_NAME \
191191
--resource-group $RESOURCE_GROUP_NAME \
@@ -220,7 +220,7 @@ Because Quarkus is a cloud native technology, it has built-in support for creati
220220

221221
Use the [az acr create](/cli/azure/acr#az-acr-create) command to create the ACR instance. The following example creates an ACR instance named with the value of your environment variable `${REGISTRY_NAME}`:
222222

223-
```azurecli-interactive
223+
```azurecli
224224
az acr create \
225225
--resource-group $RESOURCE_GROUP_NAME \
226226
--location ${LOCATION} \
@@ -241,7 +241,7 @@ After a short time, you should see JSON output that contains the following lines
241241

242242
Sign in to the ACR instance. Signing in lets you push an image. Use the following commands to verify the connection:
243243

244-
```azurecli-interactive
244+
```azurecli
245245
export LOGIN_SERVER=$(az acr show \
246246
--name $REGISTRY_NAME \
247247
--query 'loginServer' \
@@ -268,7 +268,7 @@ If you've signed into the ACR instance successfully, you should see `Login Succe
268268

269269
Use the [az aks create](/cli/azure/aks#az-aks-create) command to create an AKS cluster. The following example creates a cluster named with the value of your environment variable `${CLUSTER_NAME}` with one node. The cluster is connected to the ACR instance you created in a preceding step. This command takes several minutes to complete.
270270

271-
```azurecli-interactive
271+
```azurecli
272272
az aks create \
273273
--resource-group $RESOURCE_GROUP_NAME \
274274
--location ${LOCATION} \
@@ -291,15 +291,15 @@ After a few minutes, the command completes and returns JSON-formatted informatio
291291

292292
To manage a Kubernetes cluster, you use `kubectl`, the Kubernetes command-line client. To install `kubectl` locally, use the [az aks install-cli](/cli/azure/aks#az-aks-install-cli) command, as shown in the following example:
293293

294-
```azurecli-interactive
294+
```azurecli
295295
az aks install-cli
296296
```
297297

298298
For more information about `kubectl`, see [Command line tool (kubectl)](https://kubernetes.io/docs/reference/kubectl/overview/) in the Kubernetes documentation.
299299

300300
To configure `kubectl` to connect to your Kubernetes cluster, use the [az aks get-credentials](/cli/azure/aks#az-aks-get-credentials) command, as shown in the following example. This command downloads credentials and configures the Kubernetes CLI to use them.
301301

302-
```azurecli-interactive
302+
```azurecli
303303
az aks get-credentials \
304304
--resource-group $RESOURCE_GROUP_NAME \
305305
--name $CLUSTER_NAME \
@@ -399,7 +399,7 @@ The `prod.` prefix indicates that these properties are active when running in th
399399

400400
#### Database configuration
401401

402-
Add the following database configuration variables. The database connection related properties `%prod.quarkus.datasource.jdbc.url`, `%prod.quarkus.datasource.username` and `%prod.quarkus.datasource.password` read values from the environment variables `DB_JDBC_URL`, `DB_USERNAME` and `DB_PASSWORD`, respectively. These environment variables map to secret values that store the database connection information for security reasons, which is described in the next section.
402+
Add the following database configuration variables. The database connection related properties `%prod.quarkus.datasource.jdbc.url`, `%prod.quarkus.datasource.username`, and `%prod.quarkus.datasource.password` read values from the environment variables `DB_JDBC_URL`, `DB_USERNAME`, and `DB_PASSWORD`, respectively. These environment variables map to secret values that store the database connection information for security reasons, which is described in the next section.
403403

404404
```yaml
405405
# Database configurations
@@ -637,7 +637,7 @@ Enter *\q* to exit from the `psql` program and return to the Cloud Shell.
637637

638638
To avoid Azure charges, you should clean up unneeded 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.
639639

640-
```azurecli-interactive
640+
```azurecli
641641
git reset --hard
642642
docker rmi ${TODO_QUARKUS_TAG}:1.0
643643
docker rmi postgres

0 commit comments

Comments
 (0)