Skip to content

Commit ff0a15a

Browse files
committed
modify domain on PV sample
1 parent 9a79487 commit ff0a15a

File tree

2 files changed

+27
-28
lines changed

2 files changed

+27
-28
lines changed

documentation/site/content/samples/azure-kubernetes-service/domain-on-pv.md

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ This sample demonstrates how to use the [WebLogic Kubernetes Operator](https://o
1010
#### Contents
1111

1212
- [Prerequisites](#prerequisites)
13-
- [Prepare Parameters](#prepare-parameters)
1413
- [Create Resource Group](#create-resource-group)
1514
- [Create an AKS cluster](#create-the-aks-cluster)
1615
- [Create and configure storage](#create-storage)
@@ -31,6 +30,31 @@ This sample demonstrates how to use the [WebLogic Kubernetes Operator](https://o
3130

3231
{{< readfile file="/samples/azure-kubernetes-service/includes/prerequisites-01.txt" >}}
3332

33+
##### Prepare parameters
34+
35+
```shell
36+
# Change these parameters as needed for your own environment
37+
export ORACLE_SSO_EMAIL=<replace with your oracle account email>
38+
export ORACLE_SSO_PASSWORD="<replace with your oracle password>"
39+
40+
# Specify a prefix to name resources, only allow lowercase letters and numbers, between 1 and 7 characters
41+
export BASE_DIR=~
42+
export NAME_PREFIX=wls
43+
export WEBLOGIC_USERNAME=weblogic
44+
export WEBLOGIC_PASSWORD=Secret123456
45+
export domainUID=domain1
46+
# Used to generate resource names.
47+
export TIMESTAMP=`date +%s`
48+
export AKS_CLUSTER_NAME="${NAME_PREFIX}aks${TIMESTAMP}"
49+
export AKS_PERS_RESOURCE_GROUP="${NAME_PREFIX}resourcegroup${TIMESTAMP}"
50+
export AKS_PERS_LOCATION=eastus
51+
export AKS_PERS_STORAGE_ACCOUNT_NAME="${NAME_PREFIX}storage${TIMESTAMP}"
52+
export AKS_PERS_SHARE_NAME="${NAME_PREFIX}-weblogic-${TIMESTAMP}"
53+
export SECRET_NAME_DOCKER="${NAME_PREFIX}regcred"
54+
export ACR_NAME="${NAME_PREFIX}acr${TIMESTAMP}"
55+
56+
```
57+
3458
{{< readfile file="/samples/azure-kubernetes-service/includes/create-aks-cluster-body-01.txt" >}}
3559

3660
##### Sign in with Azure CLI
@@ -56,38 +80,13 @@ The steps in this section show you how to sign in to the Azure CLI.
5680
1. Set the subscription ID. Be sure to replace the placeholder with the appropriate value.
5781

5882
```shell
59-
$ export SUBSCRIPTION_ID=<your-subscription-id>
83+
$ export SUBSCRIPTION_ID=$(az account show --query id --output tsv)
6084
$ az account set -s $SUBSCRIPTION_ID
6185
```
6286

6387
{{% notice info %}} The following sections of the sample instructions will guide you, step-by-step, through the process of setting up a WebLogic cluster on AKS - remaining as close as possible to a native Kubernetes experience. This lets you understand and customize each step. If you wish to have a more automated experience that abstracts some lower level details, you can skip to the [Automation](#automation) section.
6488
{{% /notice %}}
6589

66-
#### Prepare parameters
67-
68-
```shell
69-
# Change these parameters as needed for your own environment
70-
export ORACLE_SSO_EMAIL=<replace with your oracle account email>
71-
export ORACLE_SSO_PASSWORD=<replace with your oracle password>
72-
73-
# Specify a prefix to name resources, only allow lowercase letters and numbers, between 1 and 7 characters
74-
export BASE_DIR=~
75-
export NAME_PREFIX=wls
76-
export WEBLOGIC_USERNAME=weblogic
77-
export WEBLOGIC_PASSWORD=Secret123456
78-
export domainUID=domain1
79-
# Used to generate resource names.
80-
export TIMESTAMP=`date +%s`
81-
export AKS_CLUSTER_NAME="${NAME_PREFIX}aks${TIMESTAMP}"
82-
export AKS_PERS_RESOURCE_GROUP="${NAME_PREFIX}resourcegroup${TIMESTAMP}"
83-
export AKS_PERS_LOCATION=eastus
84-
export AKS_PERS_STORAGE_ACCOUNT_NAME="${NAME_PREFIX}storage${TIMESTAMP}"
85-
export AKS_PERS_SHARE_NAME="${NAME_PREFIX}-weblogic-${TIMESTAMP}"
86-
export SECRET_NAME_DOCKER="${NAME_PREFIX}regcred"
87-
export ACR_NAME="${NAME_PREFIX}acr${TIMESTAMP}"
88-
89-
```
90-
9190
{{< readfile file="/samples/azure-kubernetes-service/includes/download-samples-zip.txt" >}}
9291

9392
{{< readfile file="/samples/azure-kubernetes-service/includes/create-resource-group.txt" >}}

kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/create-domain-on-aks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ initialize() {
199199

200200
# Generate Azure resource name
201201

202-
export image_build_branch_name="v4.1.1"
202+
export image_build_branch_name="v4.2.5"
203203
export image_build_base_dir="/tmp/tmp${azureResourceUID}"
204204

205205
export acr_account_name=${namePrefix}acr${azureResourceUID}

0 commit comments

Comments
 (0)