Skip to content

Commit 39ed467

Browse files
committed
On branch edburns-msft-180-02-wls-aks Apply changes suggested by @mriccell.
modified: docs-source/content/samples/simple/azure-kubernetes-service/_index.md modified: kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/create-domain-on-aks.sh
1 parent 28d7e2b commit 39ed467

File tree

2 files changed

+27
-19
lines changed
  • docs-source/content/samples/simple/azure-kubernetes-service
  • kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service

2 files changed

+27
-19
lines changed

docs-source/content/samples/simple/azure-kubernetes-service/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,10 @@ The logs are stored in the Azure file share. Follow these steps to access the lo
951951
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 16m
952952
```
953953

954+
3. **Domain debugging**
955+
956+
Some suggestions for debugging problems with Model in Image after your Domain YAML file is deployed are found in the section on [debugging](/weblogic-kubernetes-operator/userguide/managing-domains/model-in-image/debugging/).
957+
954958
#### Clean Up Resources
955959

956960
The output from the `create-domain-on-aks.sh` script includes a statement about the Azure resources created by the script. To delete the cluster and free all related resources, simply delete the resource groups. The output will list the resource groups, such as.

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

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@
33
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
#
55
# Description
6-
# This sample script creates a WebLogic domain home on the Azure Kubernetes Service (AKS).
6+
# This sample script creates a WebLogic Server domain home on the Azure Kubernetes Service (AKS).
77
# It creates a new Azure resource group, with a new Azure Storage Account and Azure File Share to allow WebLogic
88
# to persist its configuration and data separately from the Kubernetes pods that run WebLogic workloads.
99
# Besides, it also generates the domain resource yaml files, which can be used to restart the Kubernetes
1010
# artifacts of the corresponding domain.
1111
#
12-
# The Azure resource customized by editing create-domain-on-aks-inputs.yaml
13-
# If you also want to customized WebLogic domain configuration, please edit kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain-inputs.yaml.
14-
# or create a new copy and edit it, specify the file using "-d <your-domain-inputs.yaml>".
12+
# The Azure resource deployment is customized by editing
13+
# create-domain-on-aks-inputs.yaml. If you also want to customize
14+
# WebLogic Server domain configuration, please edit
15+
# kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain-inputs.yaml. Or you can create a copy of this file and edit it and refer to the copy using "-d <your-domain-inputs.yaml>".
1516
#
1617
# The following pre-requisites must be handled prior to running this script:
1718
# * Environment has set up, with git, azure cli, kubectl and helm installed.
18-
# * The doker hub account must have created, and checkouted Oracle WebLogic Server, we use 12.2.1.3 by default.
19-
# * The Azure Service Principal must have created, with permission to create AKS.
19+
# * The user must have accepted the license terms for the WebLogic Server docker
20+
# images in Oracle Container Registry.
21+
# See https://oracle.github.io/weblogic-kubernetes-operator/quickstart/get-images/
22+
# * The Azure Service Principal must have been created, with permission to
23+
# create AKS.
2024

2125
# Initialize
2226
script="${BASH_SOURCE[0]}"
@@ -30,7 +34,7 @@ function usage {
3034
echo " -i Parameter inputs file, must be specified."
3135
echo " -o Output directory for the generated yaml files, must be specified."
3236
echo " -u UID of resource, used to name file share, persistent valume, and persistent valume claim. "
33-
echo " -e Also create the Azure Kubernetes Service and create WebLogic domain on it using the generated yaml files"
37+
echo " -e Also create the Azure Kubernetes Service and create WebLogic Server domain on it using the generated yaml files"
3438
echo " -d Paramters inputs file for creating domain, you can use specifed configuration by changing values of kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain-inputs.yaml, otherwise, we will use that file by default."
3539
echo " -h Help"
3640
exit $1
@@ -138,7 +142,7 @@ function initialize {
138142

139143
wlsLbInput="${scriptDir}/loadbalancer-template.yaml"
140144
if [ ! -f ${wlsLbInput} ]; then
141-
validationError "The template file ${wlsLbInput} for generating load balancer for admin server was not found"
145+
validationError "The template file ${wlsLbInput} for generating load balancer for Administration Server was not found"
142146
fi
143147

144148
failIfValidationErrors
@@ -166,7 +170,7 @@ function initialize {
166170
}
167171

168172
#
169-
# Function to generate the yaml files for creating Azure resources and weblogic domain
173+
# Function to generate the yaml files for creating Azure resources and WebLogic Server domain
170174
#
171175
function createYamlFiles {
172176

@@ -195,7 +199,7 @@ function createYamlFiles {
195199
sed -i -e "s:%PERSISTENT_VOLUME_CLAIM_NAME%:${persistentVolumeClaimName}:g" ${pvcOutput}
196200
sed -i -e "s:%STORAGE_CLASS_NAME%:${azureStorageClassName}:g" ${pvcOutput}
197201

198-
# Generate the yaml to create weblogic domain.
202+
# Generate the yaml to create WebLogic Server domain.
199203
echo Generating ${domain1Output}
200204

201205
if [ -z ${domainInputFile} ]; then
@@ -233,7 +237,7 @@ function createYamlFiles {
233237
source ${tmpFile}
234238
rm ${exportValuesFile} ${tmpFile}
235239

236-
# Generate the yaml to create load balancer for admin server.
240+
# Generate the yaml to create load balancer for Administration Server.
237241
echo Generating ${adminLbOutput}
238242

239243
cp ${wlsLbInput} ${adminLbOutput}
@@ -242,7 +246,7 @@ function createYamlFiles {
242246
sed -i -e "s:%SERVER_PORT%:${adminPort}:g" ${adminLbOutput}
243247
sed -i -e "s:%SERVER_NAME%:${adminServerName}:g" ${adminLbOutput}
244248

245-
# Generate the yaml to create load balancer for weblogic cluster.
249+
# Generate the yaml to create load balancer for WebLogic Server cluster.
246250
echo Generating ${clusterLbOutput}
247251

248252
cp ${wlsLbInput} ${clusterLbOutput}
@@ -377,8 +381,8 @@ function installWebLogicOperator {
377381
}
378382

379383
function createWebLogicDomain {
380-
# Create WebLogic Domain Credentials.
381-
echo Creating weblogic credentials, with user ${weblogicUserName}, domainUID ${domainUID}
384+
# Create WebLogic Server Domain Credentials.
385+
echo Creating WebLogic Server Domain credentials, with user ${weblogicUserName}, domainUID ${domainUID}
382386
bash ${dirCreateDomainCredentials}/create-weblogic-credentials.sh -u ${weblogicUserName} \
383387
-p ${weblogicAccountPassword} -d ${domainUID}
384388

@@ -390,8 +394,8 @@ function createWebLogicDomain {
390394
-s ${imagePullSecretName} \
391395
-d container-registry.oracle.com
392396

393-
# Create Weblogic Domain
394-
echo Creating weblogic domain ${domainUID}
397+
# Create Weblogic Server Domain
398+
echo Creating WebLogic Server domain ${domainUID}
395399
bash ${dirCreateDomain}/create-domain.sh -i $domain1Output -o ${outputDir} -e -v
396400

397401
kubectl apply -f ${adminLbOutput}
@@ -475,7 +479,7 @@ function printSummary {
475479
476480
echo ""
477481
clusterLbIP=`kubectl get svc ${domainUID}-${clusterName}-external-lb --output jsonpath='{.status.loadBalancer.ingress[0].ip}'`
478-
echo "Cluster external ip is ${clusterLbIP}, after you deploy application to WebLogic cluster, you can access it at http://${clusterLbIP}:${managedServerPort}/<your-app-path>"
482+
echo "Cluster external ip is ${clusterLbIP}, after you deploy application to WebLogic Server cluster, you can access it at http://${clusterLbIP}:${managedServerPort}/<your-app-path>"
479483
fi
480484
echo ""
481485
echo "The following files were generated:"
@@ -502,7 +506,7 @@ export selectorClusterServerName="clusterName"
502506
cd ${scriptDir}
503507
504508
#
505-
# Perform the following sequence of steps to create Azure resources and WebLogic domain
509+
# Do these steps to create Azure resources and a WebLogic Server domain.
506510
#
507511
508512
# Setup the environment for running this script and perform initial validation checks
@@ -529,7 +533,7 @@ if [ "${executeIt}" = true ]; then
529533
# Install WebLogic Operator to AKS Cluster
530534
installWebLogicOperator
531535
532-
# Create WebLogic Domain
536+
# Create WebLogic Server Domain
533537
createWebLogicDomain
534538
535539
# Wait for all the jobs completed

0 commit comments

Comments
 (0)