Skip to content

Commit 5766b0e

Browse files
committed
finish doc updates for manually creating a domain cr
1 parent aff6d03 commit 5766b0e

File tree

2 files changed

+39
-14
lines changed

2 files changed

+39
-14
lines changed

kubernetes/samples/scripts/create-weblogic-domain/manually-create-domain/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Docker image containing your domain and the specific patches that you require, t
55
be most suitable for your needs.
66

77
To create the domain custom resource, just make a copy of the sample [domain.yaml](./domain.yaml) provided in
8-
this sample, and then edit it as per the instructions below. When it is ready, you can create the domain in your
9-
Kubernetes cluster using the command:
8+
this sample, and then edit it as per the instructions provided in the comments in that file.
9+
When it is ready, you can create the domain in your Kubernetes cluster using the command:
1010

1111
```
1212
kubectl apply -f domain.yaml
@@ -27,5 +27,4 @@ kubectl -n YOUR_NAMESPACE describe domain YOUR_DOMAIN
2727
In both of these commands, replace `YOUR_NAMESPACE` with the namespace that you created the domain in, and
2828
replace `YOUR_DOMAIN` with the `domainUID` you chose.
2929

30-
## Details of the domain custom resource YAML file
3130

kubernetes/samples/scripts/create-weblogic-domain/manually-create-domain/domain.yaml

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,84 @@
22

33
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
44
#
5-
# This is an example of how to define a Domain resource.
5+
# This is an example of how to define a Domain resource. Please read through the comments which explain
6+
# what updates are needed.
67
#
78
apiVersion: "weblogic.oracle/v2"
89
kind: Domain
910
metadata:
11+
# Update this with the `domainUID` of your domain:
1012
name: domain1
13+
# Update this with the namespace your domain will run in:
1114
namespace: weblogic
1215
labels:
1316
weblogic.resourceVersion: domain-v2
17+
# Update this with the `domainUID` of your domain:
1418
weblogic.domainUID: domain1
19+
1520
spec:
16-
# The WebLogic Domain Home
21+
# This parameter provides the location of the WebLogic Domain Home (from the container's point of view).
22+
# Note that this might be in the image itself or in a mounted volume or network storage.
1723
domainHome: /u01/oracle/user_projects/domains/domain1
18-
# If the domain home is in the image
24+
25+
# If the domain home is inside the Docker image, set this to `true`, otherwise set `false`:
1926
domainHomeInImage: true
20-
# The Docker image name
27+
28+
# Update this with the name of the Docker image that will be used to run your domain:
2129
image: "my-domain1-image:1.0"
30+
2231
# imagePullPolicy defaults to "Always" if image version is :latest
2332
imagePullPolicy: "IfNotPresent"
24-
# Identify which Secret contains the credentials for pulling an image
33+
34+
# If credentials are needed to pull the image, uncomment this section and identify which
35+
# Secret contains the credentials for pulling an image:
2536
#imagePullSecrets:
2637
#- name:
38+
2739
# Identify which Secret contains the WebLogic Admin credentials (note that there is an example of
2840
# how to create that Secret at the end of this file)
2941
webLogicCredentialsSecret:
42+
# Update this with the name of the secret containing your WebLogic server boot credentials:
3043
name: domain1-weblogic-credentials
31-
# Whether to include the server out file into the pod's stdout, default is true
44+
45+
# If you want to include the server out file into the pod's stdout, set this to `true`:
3246
includeServerOutInPodLog: true
33-
# Whether to enable log home
47+
48+
# If you want to use a mounted volume as the log home, i.e. to persist logs outside the container, then
49+
# uncomment this and set it to `true`:
3450
# logHomeEnabled: false
3551
# The in-pod name of the directory to store the domain, node manager, server logs, and server .out
3652
# files in.
3753
# If not specified or empty, domain log file, server logs, server out, and node manager log files
3854
# will be stored in the default logHome location of /shared/logs/<domainUID>/.
3955
# logHome: /shared/logs/domain1
56+
4057
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
4158
# This determines which WebLogic Servers the Operator will start up when it discovers this Domain
4259
# - "NEVER" will not start any server in the domain
4360
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
4461
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
4562
serverStartPolicy: "IF_NEEDED"
63+
4664
serverPod:
4765
# an (optional) list of environment variable to be set on the servers
4866
env:
4967
- name: JAVA_OPTIONS
5068
value: "-Dweblogic.StdoutDebugEnabled=false"
5169
- name: USER_MEM_ARGS
5270
value: "-Xms64m -Xmx256m "
71+
72+
# If you are storing your domain on a persistent volume (as opposed to inside the Docker image),
73+
# then uncomment this section and provide the PVC details and mount path here (standard images
74+
# from Oracle assume the mount path is `/shared`):
5375
# volumes:
5476
# - name: weblogic-domain-storage-volume
5577
# persistentVolumeClaim:
5678
# claimName: domain1-weblogic-sample-pvc
5779
# volumeMounts:
5880
# - mountPath: /shared
5981
# name: weblogic-domain-storage-volume
82+
6083
# adminServer is used to configure the desired behavior for starting the administration server.
6184
adminServer:
6285
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -65,16 +88,19 @@ spec:
6588
serverStartState: "RUNNING"
6689
adminService:
6790
channels:
68-
# The Admin Server's NodePort
91+
# Update this to set the NodePort to use for the Admin Server's default channel (where the
92+
# admin console will be available):
6993
- channelName: default
7094
nodePort: 30701
71-
# Uncomment to export the T3Channel as a service
72-
- channelName: T3Channel
95+
# Uncomment to export the T3Channel as a service
96+
#- channelName: T3Channel
97+
7398
# clusters is used to configure the desired behavior for starting member servers of a cluster.
7499
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
75100
clusters:
76101
- clusterName: cluster-1
77102
serverStartState: "RUNNING"
78103
replicas: 2
79-
# The number of managed servers to start for unlisted clusters
104+
105+
# The number of managed servers to start for any unlisted clusters
80106
# replicas: 1

0 commit comments

Comments
 (0)