2
2
3
3
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
4
4
#
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.
6
7
#
7
8
apiVersion : " weblogic.oracle/v2"
8
9
kind : Domain
9
10
metadata :
11
+ # Update this with the `domainUID` of your domain:
10
12
name : domain1
13
+ # Update this with the namespace your domain will run in:
11
14
namespace : weblogic
12
15
labels :
13
16
weblogic.resourceVersion : domain-v2
17
+ # Update this with the `domainUID` of your domain:
14
18
weblogic.domainUID : domain1
19
+
15
20
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.
17
23
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`:
19
26
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:
21
29
image : " my-domain1-image:1.0"
30
+
22
31
# imagePullPolicy defaults to "Always" if image version is :latest
23
32
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:
25
36
# imagePullSecrets:
26
37
# - name:
38
+
27
39
# Identify which Secret contains the WebLogic Admin credentials (note that there is an example of
28
40
# how to create that Secret at the end of this file)
29
41
webLogicCredentialsSecret :
42
+ # Update this with the name of the secret containing your WebLogic server boot credentials:
30
43
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`:
32
46
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`:
34
50
# logHomeEnabled: false
35
51
# The in-pod name of the directory to store the domain, node manager, server logs, and server .out
36
52
# files in.
37
53
# If not specified or empty, domain log file, server logs, server out, and node manager log files
38
54
# will be stored in the default logHome location of /shared/logs/<domainUID>/.
39
55
# logHome: /shared/logs/domain1
56
+
40
57
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
41
58
# This determines which WebLogic Servers the Operator will start up when it discovers this Domain
42
59
# - "NEVER" will not start any server in the domain
43
60
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
44
61
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
45
62
serverStartPolicy : " IF_NEEDED"
63
+
46
64
serverPod :
47
65
# an (optional) list of environment variable to be set on the servers
48
66
env :
49
67
- name : JAVA_OPTIONS
50
68
value : " -Dweblogic.StdoutDebugEnabled=false"
51
69
- name : USER_MEM_ARGS
52
70
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`):
53
75
# volumes:
54
76
# - name: weblogic-domain-storage-volume
55
77
# persistentVolumeClaim:
56
78
# claimName: domain1-weblogic-sample-pvc
57
79
# volumeMounts:
58
80
# - mountPath: /shared
59
81
# name: weblogic-domain-storage-volume
82
+
60
83
# adminServer is used to configure the desired behavior for starting the administration server.
61
84
adminServer :
62
85
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -65,16 +88,19 @@ spec:
65
88
serverStartState : " RUNNING"
66
89
adminService :
67
90
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):
69
93
- channelName : default
70
94
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
+
73
98
# clusters is used to configure the desired behavior for starting member servers of a cluster.
74
99
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
75
100
clusters :
76
101
- clusterName : cluster-1
77
102
serverStartState : " RUNNING"
78
103
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
80
106
# replicas: 1
0 commit comments