Skip to content

Commit 2d94420

Browse files
committed
Merge branch 'update-aks-sample' into 'main'
Update AKS sample See merge request weblogic-cloud/weblogic-kubernetes-operator!4779 (cherry picked from commit f79af4a) 9a79487 modify model in image sample. ff0a15a modify domain on PV sample 1f9ba6e Merge branch 'oracle:main' into update-aks-sample
1 parent 8c74420 commit 2d94420

File tree

4 files changed

+34
-35
lines changed

4 files changed

+34
-35
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" >}}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
##### Download the WebLogic Kubernetes Operator sample.
22

3-
Download the WebLogic Kubernetes Operator sample ZIP file. We will use several scripts in this zip file to create a WebLogic domain. This sample was tested with v4.1.8, but should work with the latest release.
3+
Download the WebLogic Kubernetes Operator sample ZIP file. We will use several scripts in this zip file to create a WebLogic domain. This sample was tested with v4.2.5, but should work with the latest release.
44

55
```shell
66
$ cd $BASE_DIR
77
$ mkdir sample-scripts
8-
$ curl -m 120 -fL https://github.com/oracle/weblogic-kubernetes-operator/releases/download/v4.1.8/sample-scripts.zip \
8+
$ curl -m 120 -fL https://github.com/oracle/weblogic-kubernetes-operator/releases/download/v4.2.5/sample-scripts.zip \
99
-o ${BASE_DIR}/sample-scripts/sample-scripts.zip
1010
$ unzip ${BASE_DIR}/sample-scripts/sample-scripts.zip -d ${BASE_DIR}/sample-scripts
1111
```

documentation/site/content/samples/azure-kubernetes-service/model-in-image.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Update the repo to get the latest Helm charts. It is a best practice to do this
9999
$ helm repo update
100100
$ helm install weblogic-operator weblogic-operator/weblogic-operator \
101101
--namespace sample-weblogic-operator-ns \
102-
--version 4.1.8 \
102+
--version 4.2.5 \
103103
--set serviceAccount=sample-weblogic-operator-sa \
104104
--wait
105105
```
@@ -115,7 +115,7 @@ REVISION: 1
115115
TEST SUITE: None
116116
```
117117

118-
{{% notice tip %}} If you wish to use a more recent version of the operator, replace the `4.1.8` in the preceding command with the other version number. To see the list of versions, visit the [GitHub releases page](https://github.com/oracle/weblogic-kubernetes-operator/releases).
118+
{{% notice tip %}} If you wish to use a more recent version of the operator, replace the `4.2.5` in the preceding command with the other version number. To see the list of versions, visit the [GitHub releases page](https://github.com/oracle/weblogic-kubernetes-operator/releases).
119119
{{% /notice %}}
120120

121121

@@ -126,7 +126,7 @@ $ helm list -A
126126
```
127127
```
128128
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
129-
weblogic-operator sample-weblogic-operator-ns 1 2023-05-15 10:31:05.1890341 +0800 CST deployeweblogic-operator-4.1.8 4.1.8
129+
weblogic-operator sample-weblogic-operator-ns 1 2023-05-15 10:31:05.1890341 +0800 CST deployeweblogic-operator-4.2.5 4.2.5
130130
```
131131
```shell
132132
$ kubectl get pods -n sample-weblogic-operator-ns
@@ -696,15 +696,15 @@ Events: <none>
696696
Access the Administration Console using the admin load balancer IP address.
697697
698698
```shell
699-
$ ADMIN_SERVER_IP=$(kubectl -n sample-domain1-ns get svc sample-domain1-admin-server-external-lb -o=jsonpath='{.status.loadBalancer.ingress\[0\].ip}')
699+
$ ADMIN_SERVER_IP=$(kubectl -n sample-domain1-ns get svc sample-domain1-admin-server-external-lb -o=jsonpath='{.status.loadBalancer.ingress[0].ip}')
700700
$ echo "Administration Console Address: http://${ADMIN_SERVER_IP}:7001/console/"
701701
```
702702
703703
Access the sample application using the cluster load balancer IP address.
704704
705705
```shell
706706
## Access the sample application using the cluster load balancer IP.
707-
$ CLUSTER_IP=$(kubectl -n sample-domain1-ns get svc sample-domain1-cluster-1-lb -o=jsonpath='{.status.loadBalancer.ingress\[0\].ip}')
707+
$ CLUSTER_IP=$(kubectl -n sample-domain1-ns get svc sample-domain1-cluster-1-lb -o=jsonpath='{.status.loadBalancer.ingress[0].ip}')
708708
```
709709

710710
```shell

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)