Skip to content

Commit ad8044c

Browse files
authored
Merge pull request #865 from oracle/rmarano
second pass edits
2 parents 485a3fe + 9c7c1c4 commit ad8044c

File tree

4 files changed

+23
-21
lines changed

4 files changed

+23
-21
lines changed

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,16 +1,16 @@
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 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 have an option of putting 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.
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 have an option of putting 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 used manually to start the Kubernetes artifacts of the corresponding domain, including the WebLogic Server pods and services.
44

55
## Prerequisites
66

77
Before you begin, read this guide, [Domain Resource](../../../../../site/domain-resource.md).
88

99
The following prerequisites must be handled prior to running the create domain script:
1010
* The WDT sample requires that `JAVA_HOME` is set to a Java JDK version 1.8 or later.
11-
* The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied. The existing WebLogic Docker image, `store/oracle/weblogic:12.2.1.3`, was updated on January 17, 2019, and has all the necessary patches applied; a `docker pull` is required if you already have this image. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to obtain or create the image.
11+
* The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied. The existing WebLogic Docker image, `store/oracle/weblogic:12.2.1.3`, was updated on January 17, 2019, and has all the necessary patches applied; a `docker pull` is required if you pulled the image prior to that date. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to obtain or create the image.
1212
* Create a Kubernetes namespace for the domain unless the intention is to use the default namespace.
13-
* If logHomeOnPV is enabled, create the Kubernetes persistent volume where the log home will be hosted, and the Kubernetes persistent volume claim for the domain in the same Kubernates namespace. For samples to create a PV and PVC, see [Create sample PV and PVC](../../create-weblogic-domain-pv-pvc/README.md).
13+
* If `logHomeOnPV` is enabled, create the Kubernetes persistent volume where the log home will be hosted, and the Kubernetes persistent volume claim for the domain in the same Kubernates namespace. For samples to create a PV and PVC, see [Create sample PV and PVC](../../create-weblogic-domain-pv-pvc/README.md).
1414
* Create a Kubernetes secret for the WebLogic administrator credentials that contains the fields `username` and `password`, and make sure that the secret name matches the value specified for `weblogicCredentialsSecretName` (see Configuration table below). For example:
1515

1616
```
@@ -108,7 +108,7 @@ The following parameters can be provided in the inputs file.
108108
| `adminServerName` | Name of the Administration Server. | `admin-server` |
109109
| `clusterName` | Name of the WebLogic cluster instance to generate for the domain. | `cluster-1` |
110110
| `configuredManagedServerCount` | Number of Managed Server instances to generate for the domain. | `5` |
111-
| `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. The existing WebLogic Docker image, `store/oracle/weblogic:12.2.1.3`, was updated on January 17, 2019, and has all the necessary patches applied; a `docker pull` is required if you already have this image. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to obtain or create the image. | `store/oracle/weblogic:12.2.1.3` |
111+
| `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. The existing WebLogic Docker image, `store/oracle/weblogic:12.2.1.3`, was updated on January 17, 2019, and has all the necessary patches applied; a `docker pull` is required if you pulled the image prior to that date. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to obtain or create the image. | `store/oracle/weblogic:12.2.1.3` |
112112
| `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` |
113113
| `domainPVMountPath` | Mount path of the domain persistent volume. This parameter is required if `logHomeOnPV` is true. Otherwise, it is ignored. | `/shared` |
114114
| `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` |
@@ -121,7 +121,7 @@ The following parameters can be provided in the inputs file.
121121
| `initialManagedServerReplicas` | Number of Managed Servers to initially start for the domain. | `2` |
122122
| `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` |
123123
| `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` |
124-
| `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` |
124+
| `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` |
125125
| `managedServerNameBase` | Base string used to generate Managed Server names. | `managed-server` |
126126
| `managedServerPort` | Port number for each Managed Server. | `8001` |
127127
| `namespace` | Kubernetes namespace in which to create the domain. | `default` |
@@ -130,7 +130,7 @@ The following parameters can be provided in the inputs file.
130130
| `serverStartPolicy` | Determines which WebLogic Servers will be started up. Legal values are `NEVER`, `IF_NEEDED`, `ADMIN_ONLY`. | `IF_NEEDED` |
131131
| `t3ChannelPort` | Port for the T3 channel of the NetworkAccessPoint. | `30012` |
132132
| `t3PublicAddress` | Public address for the T3 channel. This should be set to the public address of the Kubernetes cluster. This would normally be a load balancer address. <p/>For development environments only: In a single server (all-in-one) Kubernetes deployment, this may be set to the address of the master, or at the very least, it must be set to the address of one of the worker nodes. | `kubernetes` |
133-
| `weblogicCredentialsSecretName` | Name of the Kubernetes secret for the Administration Server's username and password. | `domain1-weblogic-credentials` |
133+
| `weblogicCredentialsSecretName` | Name of the Kubernetes secret for the Administration Server's user name and password. | `domain1-weblogic-credentials` |
134134

135135
Note that the names of the Kubernetes resources in the generated YAML files may be formed with the value of some of the properties specified in the `create-inputs.yaml` file. Those properties include the `adminServerName`, `clusterName` and `managedServerNameBase`. If those values contain any characters that are invalid in a Kubernetes service name, those characters are converted to valid values in the generated YAML files. For example, an uppercase letter is converted to a lowercase letter and an underscore `("_")` is converted to a hyphen `("-")`.
136136

@@ -181,7 +181,7 @@ spec:
181181
includeServerOutInPodLog: true
182182
# Whether to enable log home
183183
# logHomeEnabled: false
184-
# The in-pod location for domain log, server logs, server out, and node manager log files
184+
# The in-pod location for domain log, server logs, server out, and Node Manager log files
185185
# logHome: /shared/logs/domain1
186186
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
187187
# This determines which WebLogic Servers the operator will start up when it discovers this Domain

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. The existing WebLogic Docker image, `store/oracle/weblogic:12.2.1.3`, was updated on January 17, 2019, and has all the necessary patches applied; a `docker pull` is required if you already have this image. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to obtain or create the image.
11+
* The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied. The existing WebLogic Docker image, `store/oracle/weblogic:12.2.1.3`, was updated on January 17, 2019, and has all the necessary patches applied; a `docker pull` is required if you pulled the image prior to that date. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to obtain or create the image.
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. The existing WebLogic Docker image, `store/oracle/weblogic:12.2.1.3`, was updated on January 17, 2019, and has all the necessary patches applied; a `docker pull` is required if you already have this image. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to obtain or create the image. | `store/oracle/weblogic:12.2.1.3` |
86-
| `imagePullPolicy` | WebLogic Docker image pull policy. Legal values are "IfNotPresent", "Always", or "Never" | `IfNotPresent` |
85+
| `image` | WebLogic Docker image. The operator requires WebLogic Server 12.2.1.3.0 with patch 29135930 applied. The existing WebLogic Docker image, `store/oracle/weblogic:12.2.1.3`, was updated on January 17, 2019, and has all the necessary patches applied; a `docker pull` is required if you pulled the image prior to that date. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to obtain or create the image. | `store/oracle/weblogic:12.2.1.3` |
86+
| `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 | |
88-
| `includeServerOutInPodLog` | Boolean indicating whether to include server .out to the pod's stdout. | `true` |
88+
| `includeServerOutInPodLog` | Boolean indicating whether to include the 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` |
@@ -149,7 +149,7 @@ spec:
149149
includeServerOutInPodLog: true
150150
# Whether to enable log home
151151
logHomeEnabled: true
152-
# The in-pod name location for domain log, server logs, server out, and node manager log files
152+
# The in-pod name location for domain log, server logs, server out, and Node Manager log files
153153
logHome: /shared/logs/domain1
154154
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
155155
# This determines which WebLogic Servers the operator will start up when it discovers this Domain

site/quickstart.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ refer to the [User guide](user-guide.md).
1818
## Prerequisites
1919
For this exercise, you’ll need a Kubernetes cluster. If you need help setting one up, check out our [cheat sheet](k8s_setup.md). This guide assumes a single node cluster.
2020

21-
The operator uses Helm to create and deploy necessary resources and then run the operator in a Kubernetes cluster. For Helm installation and usage information, see [Install Helm and Tiller](install.md#install-helm-and-tiller).
21+
The operator uses Helm to create and deploy the necessary resources and then run the operator in a Kubernetes cluster. For Helm installation and usage information, see [Install Helm and Tiller](install.md#install-helm-and-tiller).
2222

2323
You should clone this repository to your local machine so that you have access to the
2424
various sample files mentioned throughout this guide:
@@ -48,7 +48,7 @@ e. Pull the WebLogic 12.2.1.3 install image:
4848
```
4949
$ docker pull store/oracle/weblogic:12.2.1.3
5050
```
51-
**Note**: The existing WebLogic Docker image, `store/oracle/weblogic:12.2.1.3`, was updated on January 17, 2019, and has all the necessary patches applied; a `docker pull` is required if you have previously pulled this image.
51+
**Note**: The existing WebLogic Docker image, `store/oracle/weblogic:12.2.1.3`, was updated on January 17, 2019, and has all the necessary patches applied; a `docker pull` is required if you pulled the image prior to that date.
5252

5353
f. Copy the image to all the nodes in your cluster, or put it in a Docker registry that your cluster can access.
5454

@@ -237,10 +237,10 @@ e. To confirm that the load balancer noticed the new Ingress and is successfully
237237
**NOTE**: Be sure to include the trailing forward slash on the URL, otherwise the command won't work.
238238

239239
```
240-
$ curl -v -H 'host: sample-domain1.org' http://your.server.com:30701/weblogic/
241-
* About to connect() to your.server.com port 30701 (#0)
240+
$ curl -v -H 'host: sample-domain1.org' http://your.server.com:30305/weblogic/
241+
* About to connect() to your.server.com port 30305 (#0)
242242
* Trying 10.196.1.64...
243-
* Connected to your.server.com (10.196.1.64) port 30701 (#0)
243+
* Connected to your.server.com (10.196.1.64) port 30305 (#0)
244244
> GET /weblogic/ HTTP/1.1
245245
> User-Agent: curl/7.29.0
246246
> Accept: */*

site/user-guide.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ presented in the correct order.
1616

1717
* [Important terms](#important-terms)
1818
* [Getting started](#getting-started)
19+
* [Exposing applications outside the Kubernetes cluster](#exposing-applications-outside-the-kubernetes-cluster)
20+
* [Operator Docker image](#0perator-docker-image)
1921
* [Prerequisites](#prerequisites)
2022
* [Preparing your Kubernetes environment to run the operator](prepare-k8s.md)
2123
* [Set up your Kubernetes cluster](k8s_setup.md)
@@ -66,7 +68,7 @@ You can have one or more operators in your Kubernetes cluster that manage one or
6668
We provide a Helm chart to manage the installation and configuration of the operator.
6769
Detailed instructions are available [here](install.md).
6870

69-
## Exposing applications outside the Kubernetes cluster
71+
### Exposing applications outside the Kubernetes cluster
7072
The operator can configure services to expose WebLogic applications and features outside of the Kubernetes cluster. Care should be taken when exposing anything externally to ensure that the appropriate security considerations are taken into account. In this regard, there is no significant difference between a WebLogic domain running in a Kubernetes cluster and a domain running in a traditional data center. The same kinds of considerations should be taken into account, for example:
7173

7274
* Only expose those protocols and ports that need to be exposed.
@@ -84,7 +86,7 @@ While it is natural to expose web applications outside the cluster, exposing adm
8486

8587
Oracle recommends careful consideration before deciding to expose any administrative or non-HTTP(S) interfaces or protocols externally.
8688

87-
## Operator Docker image
89+
### Operator Docker image
8890

8991
You can find the operator image in
9092
[Docker Hub](https://hub.docker.com/r/oracle/weblogic-kubernetes-operator/).
@@ -98,5 +100,5 @@ You can find the operator image in
98100
* Oracle WebLogic Server 12.2.1.3.0 with patch 29135930.
99101
* The existing WebLogic Docker image, `store/oracle/weblogic:12.2.1.3`,
100102
was updated on January 17, 2019, and has all the necessary patches applied.
101-
* A `docker pull` is required if you have previously pulled this image.
103+
* A `docker pull` is required if you pulled the image prior to that date.
102104
* You must have the `cluster-admin` role to install the operator.

0 commit comments

Comments
 (0)