Skip to content

Commit 61e78ae

Browse files
authored
Merge pull request #784 from oracle/update-doc-with-new-patch-number
Update sample README and comments
2 parents e247800 + 927cb75 commit 61e78ae

File tree

5 files changed

+39
-32
lines changed

5 files changed

+39
-32
lines changed

kubernetes/samples/scripts/common/domain-template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
domainHome: %DOMAIN_HOME%
1818
# If the domain home is in the image
1919
domainHomeInImage: %DOMAIN_HOME_IN_IMAGE%
20-
# The Operator currently does not support other images
20+
# The WebLogic Server Docker image that the Operator uses to start the domain
2121
image: "%WEBLOGIC_IMAGE%"
2222
# imagePullPolicy defaults to "Always" if image version is :latest
2323
imagePullPolicy: "%WEBLOGIC_IMAGE_PULL_POLICY%"
@@ -32,7 +32,7 @@ spec:
3232
includeServerOutInPodLog: %INCLUDE_SERVER_OUT_IN_POD_LOG%
3333
# Whether to enable log home
3434
%LOG_HOME_ON_PV_PREFIX%logHomeEnabled: %LOG_HOME_ENABLED%
35-
# The in-pod location for domain log, server logs, server out, and node manager log files
35+
# The in-pod location for domain log, server logs, server out, and Node Manager log files
3636
%LOG_HOME_ON_PV_PREFIX%logHome: %LOG_HOME%
3737
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
3838
# This determines which WebLogic Servers the Operator will start up when it discovers this Domain

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# WebLogic sample domain home in Docker image
22

3-
The sample scripts demonstrate the creation of a WebLogic domain home in a Docker image. If logHomeOnPV is enabled, then the log home resides on an existing Kubernetes persistent volume (PV) and persistent volume claim (PVC). The scripts also generate the domain YAML file, which can then be used to start the Kubernetes artifacts of the corresponding domain. Optionally, the scripts start up the domain, and WebLogic Server pods and services.
3+
The sample scripts demonstrate the creation of a WebLogic domain home in a Docker image using one of the domain home in image samples in the [WebLogic Server Domain Docker image samples GitHub project](https://github.com/oracle/docker-images/tree/master/OracleWebLogic/samples). The sample scripts provide an option to put the WebLogic domain log, server logs, server output files, and the Node Manager logs on an existing Kubernetes persistent volume (PV) and persistent volume claim (PVC). The scripts also generate the domain YAML file, which can then be used by the scripts or manually to start the Kubernetes artifacts of the corresponding domain, including the WebLogic Server pods and services.
44

55
## Prerequisites
66

@@ -102,20 +102,20 @@ The following parameters can be provided in the inputs file.
102102
| `adminServerName` | Name of the Administration Server. | `admin-server` |
103103
| `clusterName` | Name of the WebLogic cluster instance to generate for the domain. | `cluster-1` |
104104
| `configuredManagedServerCount` | Number of Managed Server instances to generate for the domain. | `5` |
105-
| `domainHomeImageBase` | Base WebLogic binary image used to build the WebLogic domain image. The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied. Refer to [Weblogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to create one. If a different `domainHomeImageBase` is specified, the specified image needs to be built locally or pulled from a repository before the `create-domain.sh` script is executed. | |
105+
| `domainHomeImageBase` | Base WebLogic binary image used to build the WebLogic domain image. The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to create one. | |
106106
| `domainHomeImageBuildPath` | Location of the WebLogic "domain home in image" Docker image in `https://github.com/oracle/docker-images.git` project. If not specified, use "./docker-images/OracleWebLogic/samples/12213-domain-home-in-image". Another possible value is "./docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt" which uses WDT, instead of WLST, to generate the domain configuration. | `./docker-images/OracleWebLogic/samples/12213-domain-home-in-image` |
107107
| `domainPVMountPath` | Mount path of the domain persistent volume. This parameter is required if `logHomeOnPV` is true. Otherwise, it is ignored. | `/shared` |
108108
| `domainUID` | Unique ID that will be used to identify this particular domain. Used as the name of the generated WebLogic domain as well as the name of the Kubernetes domain resource. This ID must be unique across all domains in a Kubernetes cluster. This ID cannot contain any character that is not valid in a Kubernetes service name. | `domain1` |
109109
| `exposeAdminNodePort` | Boolean indicating if the Administration Server is exposed outside of the Kubernetes cluster. | `false` |
110110
| `exposeAdminT3Channel` | Boolean indicating if the T3 administrative channel is exposed outside the Kubernetes cluster. | `false` |
111-
| `image` | WebLogic Docker image that the domain resource will pull if needed. You need to specify this only if you are going to tag the generated image to a different name. If you run the sample script from a machine that is remote to the Kubernetes cluster, you need to specify this to point to an image in a registry local to the cluster, and then push the generated image to that registry before starting the domain. If not specified, the sample uses the internally generated image name, either `domain-home-in-image:latest` or `domain-home-in-image-wdt:latest`. | |
111+
| `image` | WebLogic Server Docker image that the operator uses to start the domain. The create domain scripts generate a WebLogic Server Docker image with a domain home in it. By default, the scripts tag the generated WebLogic server Docker image as either `domain-home-in-image` or `domain-home-in-image-wdt` based on the `domainHomeImageBuildPath` property, and use it to set the `image` element in the generated domain YAML file. If this property is set, the create domain scripts will use the value specified, instead of the default value, to tag the generated image and set the `image` in the domain YAML file. If you are running the sample scripts from a machine that is remote to the Kubernetes cluster where the domain is going to be running, you need to set this property to the image name that is intended to be used in a registry local to that Kubernetes cluster. You also need to push the `image` to that registry before starting the domain using the `kubectl create -f` or `kubectl apply -f` command. | |
112112
| `imagePullPolicy` | WebLogic Docker image pull policy. Legal values are `IfNotPresent`, `Always`, or `Never`. | `IfNotPresent` |
113113
| `imagePullSecretName` | Name of the Kubernetes secret to access the Docker Store to pull the WebLogic Server Docker image. The presence of the secret will be validated when this parameter is specified. | |
114114
| `includeServerOutInPodLog` | Boolean indicating whether to include `server.out` to the pod's stdout. | `true` |
115115
| `initialManagedServerReplicas` | Number of Managed Servers to initially start for the domain. | `2` |
116116
| `javaOptions` | Java options for starting the Administration and Managed Servers. A Java option can have references to one or more of the following pre-defined variables to obtain WebLogic domain information: `$(DOMAIN_NAME)`, `$(DOMAIN_HOME)`, `$(ADMIN_NAME)`, `$(ADMIN_PORT)`, and `$(SERVER_NAME)`. | `-Dweblogic.StdoutDebugEnabled=false` |
117117
| `logHomeOnPV` | Specifies whether the log home is stored on the persistent volume. If set to true, then you must specify the `logHome`, `persistentVolumeClaimName` and `domainPVMountPath` parameters.| `false` |
118-
| `logHome` | The in-pod location for domain log, server logs, server out, and node manager log files. If not specified, the value is derived from the `domainUID` as `/shared/logs/<domainUID>`. This parameter is required if `logHomeOnPV` is true. Otherwise, it is ignored. | `/shared/logs/domain1` |
118+
| `logHome` | The in-pod location for domain log, server logs, server out, and Node Manager log files. If not specified, the value is derived from the `domainUID` as `/shared/logs/<domainUID>`. This parameter is required if `logHomeOnPV` is true. Otherwise, it is ignored. | `/shared/logs/domain1` |
119119
| `managedServerNameBase` | Base string used to generate Managed Server names. | `managed-server` |
120120
| `managedServerPort` | Port number for each Managed Server. | `8001` |
121121
| `namespace` | Kubernetes namespace in which to create the domain. | `default` |
@@ -160,7 +160,7 @@ spec:
160160
domainHome: /u01/oracle/user_projects/domains/domain1
161161
# If the domain home is in the image
162162
domainHomeInImage: true
163-
# The Operator currently does not support other images
163+
# The WebLogic Server Docker image that the operator uses to start the domain
164164
image: "domain-home-in-image"
165165
# imagePullPolicy defaults to "Always" if image version is :latest
166166
imagePullPolicy: "IfNotPresent"
@@ -175,10 +175,10 @@ spec:
175175
includeServerOutInPodLog: true
176176
# Whether to enable log home
177177
# logHomeEnabled: false
178-
# The in-pod location for domain log, server logs, server out, and node manager log files
178+
# The in-pod location for domain log, server logs, server out, and Node Manager log files
179179
# logHome: /shared/logs/domain1
180180
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
181-
# This determines which WebLogic Servers the Operator will start up when it discovers this Domain
181+
# This determines which WebLogic Servers the operator will start up when it discovers this Domain
182182
# - "NEVER" will not start any server in the domain
183183
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
184184
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/create-domain-inputs.yaml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ adminServerName: admin-server
1515
# in a Kubernetes cluster.
1616
domainUID: domain1
1717

18-
# Determines which WebLogic Servers the Operator will start up
18+
# Determines which WebLogic Servers the operator will start up
1919
# Legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
2020
serverStartPolicy: IF_NEEDED
2121

@@ -37,17 +37,20 @@ managedServerPort: 8001
3737
# Boolean indicating if production mode is enabled for the domain
3838
productionModeEnabled: true
3939

40-
# WebLogic Docker image that the domain resource will pull if needed.
40+
# WebLogic Server Docker image that the operator uses to start the domain.
4141
#
42-
# You only need to specify this if you want to tag the generated image to a different name.
42+
# The create domain scripts generate a WebLogic Server Docker image with a domain home in it.
43+
# By default, the scripts tag the generated WebLogic server Docker image as either
44+
# `domain-home-in-image` or `domain-home-in-image-wdt` based on the `domainHomeImageBuildPath`
45+
# property, and use it to set the `image` element in the generated domain YAML file.
4346
#
44-
# If you are running the sample script from a machine that is remote to the Kubernetes cluster,
45-
# you need to specify this to point to an image in a registry local to the cluster. You
46-
# then need to push the generate image to that registry before starting the domain.
47-
#
48-
# If not specified, the sample uses the internally generated image name,
49-
# either "domain-home-in-image-wdt:latest" or "domain-home-in-image-wlst:latest".
47+
# If this property is set, the create domain scripts will use the value specified, instead of the
48+
# default value, to tag the generated image and set the `image` in the domain YAML file.
5049
#
50+
# If you are running the sample scripts from a machine that is remote to the Kubernetes cluster where
51+
# the domain is going to be running, you need to set this property to the image name that is intended
52+
# to be used in a registry local to that Kubernetes cluster. You also need to push the `image` to
53+
# that registry before starting the domain using the `kubectl create -f` or `kubectl apply -f` command.
5154
# See README.md for more help.
5255
#image:
5356

@@ -74,7 +77,7 @@ includeServerOutInPodLog: true
7477
# The default is false.
7578
logHomeOnPV: false
7679

77-
# The in-pod location for domain log, server logs, server out, and node manager log files
80+
# The in-pod location for domain log, server logs, server out, and Node Manager log files
7881
# If not specified, the value is derived from the domainUID as /shared/logs/<domainUID>
7982
# This parameter is required if 'logHomeOnPV' is true.
8083
# Otherwise, it is ignored.
@@ -101,7 +104,7 @@ exposeAdminNodePort: false
101104
# Name of the domain namespace
102105
namespace: default
103106

104-
# Java Option for Weblogic Server
107+
# Java Option for WebLogic Server
105108
javaOptions: -Dweblogic.StdoutDebugEnabled=false
106109

107110
# Name of the persistent volume claim
@@ -116,7 +119,9 @@ persistentVolumeClaimName: domain1-weblogic-sample-pvc
116119
domainPVMountPath: /shared
117120

118121
# Base WebLogic binary image used to build the WebLogic domain image
119-
# The operator requires WebLogic Server 12.2.1.3.0 with patch 28076014 applied.
122+
# The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied.
123+
# Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how
124+
# to create a custom Docker image with the required patch.
120125
# See README.md for more help.
121126
#domainHomeImageBase:
122127

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Before you begin, read this guide, [Domain Resource](../../../../../site/domain-
88

99
The following prerequisites must be handled prior to running the create domain script:
1010
* Make sure the WebLogic operator is running.
11-
* The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied. Refer to [Weblogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to create one.
11+
* The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to create one.
1212
* Create a Kubernetes namespace for the domain unless the intention is to use the default namespace.
1313
* In the same Kubernetes namespace, create the Kubernetes persistent volume where the domain home will be hosted, and the Kubernetes persistent volume claim for the domain. For samples to create a PV and PVC, see [Create sample PV and PVC](../../create-weblogic-domain-pv-pvc/README.md).
1414
* Create the Kubernetes secrets `username` and `password` of the admin account in the same Kubernetes namespace as the domain.
@@ -82,13 +82,13 @@ The following parameters can be provided in the inputs file.
8282
| `domainUID` | Unique ID that will be used to identify this particular domain. Used as the name of the generated WebLogic domain as well as the name of the Kubernetes domain resource. This ID must be unique across all domains in a Kubernetes cluster. This ID cannot contain any character that is not valid in a Kubernetes service name. | `domain1` |
8383
| `exposeAdminNodePort` | Boolean indicating if the Administration Server is exposed outside of the Kubernetes cluster. | `false` |
8484
| `exposeAdminT3Channel` | Boolean indicating if the T3 administrative channel is exposed outside the Kubernetes cluster. | `false` |
85-
| `image` | WebLogic Docker image. The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied. Refer to [Weblogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to create one. | |
85+
| `image` | WebLogic Docker image. The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to create one. | |
8686
| `imagePullPolicy` | WebLogic Docker image pull policy. Legal values are "IfNotPresent", "Always", or "Never" | `IfNotPresent` |
8787
| `imagePullSecretName` | Name of the Kubernetes secret to access the Docker Store to pull the WebLogic Server Docker image. The presence of the secret will be validated when this parameter is specified | |
8888
| `includeServerOutInPodLog` | Boolean indicating whether to include server .out to the pod's stdout. | `true` |
8989
| `initialManagedServerReplicas` | Number of Managed Servers to initially start for the domain. | `2` |
9090
| `javaOptions` | Java options for starting the Administration and Managed Servers. A Java option can have references to one or more of the following pre-defined variables to obtain WebLogic domain information: `$(DOMAIN_NAME)`, `$(DOMAIN_HOME)`, `$(ADMIN_NAME)`, `$(ADMIN_PORT)`, and `$(SERVER_NAME)`. | `-Dweblogic.StdoutDebugEnabled=false` |
91-
| `logHome` | The in-pod location for domain log, server logs, server out, and node manager log files. If not specified, the value is derived from the `domainUID` as `/shared/logs/<domainUID>`. | `/shared/logs/domain1` |
91+
| `logHome` | The in-pod location for domain log, server logs, server out, and Node Manager log files. If not specified, the value is derived from the `domainUID` as `/shared/logs/<domainUID>`. | `/shared/logs/domain1` |
9292
| `managedServerNameBase` | Base string used to generate Managed Server names. | `managed-server` |
9393
| `managedServerPort` | Port number for each Managed Server. | `8001` |
9494
| `namespace` | Kubernetes namespace in which to create the domain. | `default` |
@@ -133,7 +133,7 @@ spec:
133133
domainHome: /shared/domains/domain1
134134
# If the domain home is in the image
135135
domainHomeInImage: false
136-
# The Operator currently does not support other images
136+
# The WebLogic Server Docker image that the operator uses to start the domain
137137
image: "oracle/weblogic:12213-patch-wls-for-k8s"
138138
# imagePullPolicy defaults to "Always" if image version is :latest
139139
imagePullPolicy: "IfNotPresent"
@@ -148,10 +148,10 @@ spec:
148148
includeServerOutInPodLog: true
149149
# Whether to enable log home
150150
logHomeEnabled: true
151-
# The in-pod name location for domain log, server logs, server out, and node manager log files
151+
# The in-pod name location for domain log, server logs, server out, and Node Manager log files
152152
logHome: /shared/logs/domain1
153153
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
154-
# This determines which WebLogic Servers the Operator will start up when it discovers this Domain
154+
# This determines which WebLogic Servers the operator will start up when it discovers this Domain
155155
# - "NEVER" will not start any server in the domain
156156
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
157157
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain-inputs.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ domainUID: domain1
1818
# If not specified, the value is derived from the domainUID as /shared/domains/<domainUID>
1919
domainHome: /shared/domains/domain1
2020

21-
# Determines which WebLogic Servers the Operator will start up
21+
# Determines which WebLogic Servers the operator will start up
2222
# Legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
2323
serverStartPolicy: IF_NEEDED
2424

@@ -37,8 +37,10 @@ managedServerNameBase: managed-server
3737
# Port number for each managed server
3838
managedServerPort: 8001
3939

40-
# WebLogic Docker image.
41-
# The operator requires WebLogic Server 12.2.1.3.0 with patch 28076014 applied. See README.md for more help.
40+
# WebLogic Server Docker image.
41+
# The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied.
42+
# Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how
43+
# to create a custom Docker image with the required patch.
4244
#image:
4345

4446
# Image pull policy
@@ -61,7 +63,7 @@ weblogicCredentialsSecretName: domain1-weblogic-credentials
6163
# The default is true.
6264
includeServerOutInPodLog: true
6365

64-
# The in-pod location for domain log, server logs, server out, and node manager log files
66+
# The in-pod location for domain log, server logs, server out, and Node Manager log files
6567
# If not specified, the value is derived from the domainUID as /shared/logs/<domainUID>
6668
logHome: /shared/logs/domain1
6769

@@ -86,7 +88,7 @@ exposeAdminNodePort: false
8688
# Name of the domain namespace
8789
namespace: default
8890

89-
#Java Option for Weblogic Server
91+
#Java Option for WebLogic Server
9092
javaOptions: -Dweblogic.StdoutDebugEnabled=false
9193

9294
# Name of the persistent volume claim

0 commit comments

Comments
 (0)