You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
# WebLogic sample domain home in Docker image
2
2
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.
4
4
5
5
## Prerequisites
6
6
7
7
Before you begin, read this guide, [Domain Resource](../../../../../site/domain-resource.md).
8
8
9
9
The following prerequisites must be handled prior to running the create domain script:
10
10
* 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.
12
12
* 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).
14
14
* 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:
15
15
16
16
```
@@ -108,7 +108,7 @@ The following parameters can be provided in the inputs file.
108
108
|`adminServerName`| Name of the Administration Server. |`admin-server`|
109
109
|`clusterName`| Name of the WebLogic cluster instance to generate for the domain. |`cluster-1`|
110
110
|`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`|
112
112
|`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`|
113
113
|`domainPVMountPath`| Mount path of the domain persistent volume. This parameter is required if `logHomeOnPV` is true. Otherwise, it is ignored. |`/shared`|
114
114
|`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.
121
121
|`initialManagedServerReplicas`| Number of Managed Servers to initially start for the domain. |`2`|
122
122
|`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`|
123
123
|`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`|
125
125
|`managedServerNameBase`| Base string used to generate Managed Server names. |`managed-server`|
126
126
|`managedServerPort`| Port number for each Managed Server. |`8001`|
127
127
|`namespace`| Kubernetes namespace in which to create the domain. |`default`|
@@ -130,7 +130,7 @@ The following parameters can be provided in the inputs file.
130
130
|`serverStartPolicy`| Determines which WebLogic Servers will be started up. Legal values are `NEVER`, `IF_NEEDED`, `ADMIN_ONLY`. |`IF_NEEDED`|
131
131
|`t3ChannelPort`| Port for the T3 channel of the NetworkAccessPoint. |`30012`|
132
132
|`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`|
134
134
135
135
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 `("-")`.
136
136
@@ -181,7 +181,7 @@ spec:
181
181
includeServerOutInPodLog: true
182
182
# Whether to enable log home
183
183
# 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
185
185
# logHome: /shared/logs/domain1
186
186
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
187
187
# This determines which WebLogic Servers the operator will start up when it discovers this Domain
Copy file name to clipboardExpand all lines: kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Before you begin, read this guide, [Domain Resource](../../../../../site/domain-
8
8
9
9
The following prerequisites must be handled prior to running the create domain script:
10
10
* 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.
12
12
* Create a Kubernetes namespace for the domain unless the intention is to use the default namespace.
13
13
* 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).
14
14
* 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.
82
82
|`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`|
83
83
|`exposeAdminNodePort`| Boolean indicating if the Administration Server is exposed outside of the Kubernetes cluster. |`false`|
84
84
|`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`|
87
87
|`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`|
89
89
|`initialManagedServerReplicas`| Number of Managed Servers to initially start for the domain. |`2`|
90
90
|`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`|
92
92
|`managedServerNameBase`| Base string used to generate Managed Server names. |`managed-server`|
93
93
|`managedServerPort`| Port number for each Managed Server. |`8001`|
94
94
|`namespace`| Kubernetes namespace in which to create the domain. |`default`|
@@ -149,7 +149,7 @@ spec:
149
149
includeServerOutInPodLog: true
150
150
# Whether to enable log home
151
151
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
153
153
logHome: /shared/logs/domain1
154
154
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
155
155
# This determines which WebLogic Servers the operator will start up when it discovers this Domain
Copy file name to clipboardExpand all lines: site/quickstart.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ refer to the [User guide](user-guide.md).
18
18
## Prerequisites
19
19
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.
20
20
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).
22
22
23
23
You should clone this repository to your local machine so that you have access to the
24
24
various sample files mentioned throughout this guide:
@@ -48,7 +48,7 @@ e. Pull the WebLogic 12.2.1.3 install image:
48
48
```
49
49
$ docker pull store/oracle/weblogic:12.2.1.3
50
50
```
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.
52
52
53
53
f. Copy the image to all the nodes in your cluster, or put it in a Docker registry that your cluster can access.
54
54
@@ -237,10 +237,10 @@ e. To confirm that the load balancer noticed the new Ingress and is successfully
237
237
**NOTE**: Be sure to include the trailing forward slash on the URL, otherwise the command won't work.
Copy file name to clipboardExpand all lines: site/user-guide.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ presented in the correct order.
16
16
17
17
*[Important terms](#important-terms)
18
18
*[Getting started](#getting-started)
19
+
*[Exposing applications outside the Kubernetes cluster](#exposing-applications-outside-the-kubernetes-cluster)
20
+
*[Operator Docker image](#0perator-docker-image)
19
21
*[Prerequisites](#prerequisites)
20
22
*[Preparing your Kubernetes environment to run the operator](prepare-k8s.md)
21
23
*[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
66
68
We provide a Helm chart to manage the installation and configuration of the operator.
67
69
Detailed instructions are available [here](install.md).
68
70
69
-
## Exposing applications outside the Kubernetes cluster
71
+
###Exposing applications outside the Kubernetes cluster
70
72
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:
71
73
72
74
* 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
84
86
85
87
Oracle recommends careful consideration before deciding to expose any administrative or non-HTTP(S) interfaces or protocols externally.
0 commit comments