Skip to content

Commit 9432999

Browse files
fix formatting and minor edits
1 parent 40b02b8 commit 9432999

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed

docs-source/content/userguide/managing-domains/domain-resource.md

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,47 +48,54 @@ $ kubectl describe domain [domain name] -n [namespace]
4848

4949
The domain resource, like all [Kubernetes objects](https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/), is described by three sections: `metadata`, `spec`, and `status`.
5050

51-
The `metadata` section names the domain resource and its namespace. The name of the domain resource is the default value for the "domain UID" which is used by the operator to distinguish domains running in the Kubernetes cluster that may have the same domain name. The domain resource name is required to be unique in the namespace and the domain UID should be unique across the cluster. The domain UID, domain resource name, and domain name (from the WebLogic domain configuration) may all be different.
51+
The `metadata` section names the domain resource and its namespace. The name of the domain resource is the default value for the `domain UID` which is used by the operator to distinguish domains running in the Kubernetes cluster that may have the same domain name. The domain resource name is required to be unique in the namespace and the domain UID should be unique across the cluster. The domain UID, domain resource name, and domain name (from the WebLogic domain configuration) may all be different.
5252

5353
The `spec` section describes the intended running state of the domain, including intended runtime state of server instances, number of cluster members started, and details about Kubernetes pod or service generation, such as resource constraints, scheduling requirements, or volume mounts.
5454

5555
The `status` section is updated by the operator and describes the actual running state of the domain, including WebLogic Server instance runtime states and current health.
5656

5757
#### Domain resource spec elements
5858

59-
The domain resource `spec` section contains elements for configuring the domain operation and sub-sections specific to the Administration Server, specific clusters or specific Managed Servers.
59+
The domain resource `spec` section contains elements for configuring the domain operation and sub-sections specific to the Administration Server, specific clusters, or specific Managed Servers.
6060

6161
Elements related to domain identification, Docker image, and domain home:
62+
6263
* `domainUID`: The domain unique identifier. Must be unique across the Kubernetes cluster. Not required. Defaults to the value of `metadata.name`.
63-
* `image`: The WebLogic Docker image. Required when `domainHomeInImage` is true; otherwise, defaults to "container-registry.oracle.com/middleware/weblogic:12.2.1.3".
64-
* `imagePullPolicy`: The image pull policy for the WebLogic Docker image. Legal values are `Always`, `Never` and `IfNotPresent`. Defaults to `Always` if image ends in ":latest", `IfNotPresent` otherwise.
64+
* `image`: The WebLogic Docker image. Required when `domainHomeInImage` is true; otherwise, defaults to `container-registry.oracle.com/middleware/weblogic:12.2.1.3`.
65+
* `imagePullPolicy`: The image pull policy for the WebLogic Docker image. Legal values are `Always`, `Never` and `IfNotPresent`. Defaults to `Always` if image ends in `:latest`; `IfNotPresent` otherwise.
6566
* `imagePullSecrets`: A list of image pull secrets for the WebLogic Docker image.
66-
* `domainHome`: The folder for the WebLogic Domain. Not required. Defaults to "/shared/domains/domains/domainUID" if `domainHomeInImage` is false. Defaults to "/u01/oracle/user_projects/domains/" if `domainHomeInImage` is true.
67+
* `domainHome`: The folder for the WebLogic domain. Not required. Defaults to `/shared/domains/domains/domainUID` if `domainHomeInImage` is false. Defaults to `/u01/oracle/user_projects/domains/` if `domainHomeInImage` is true.
6768
* `domainHomeInImage`: True if this domain's home is defined in the Docker image for the domain. Defaults to true.
6869

6970
Elements related to logging:
70-
* `includeServerOutInPodLog`: If true (the default), the server ".out" file will be included in the pod's stdout.
71-
* `logHome`: The in-pod name of the directory in which to store the domain, Node Manager, server logs, and server ".out" files.
71+
72+
* `includeServerOutInPodLog`: If true (the default), the server `.out` file will be included in the pod's stdout.
73+
* `logHome`: The in-pod name of the directory in which to store the domain, Node Manager, server logs, and server `.out` files.
7274
* `logHomeEnabled`: Specifies whether the log home folder is enabled. Not required. Defaults to true if `domainHomeInImage` is false. Defaults to false if `domainHomeInImage` is true.
7375

7476
Elements related to security:
75-
* `webLogicCredentialsSecret`: The name of a pre-created Kubernetes secret, in the domain resource's namespace, that holds the user name and password needed to boot WebLogic Server under the 'username' and 'password' fields.
77+
78+
* `webLogicCredentialsSecret`: The name of a pre-created Kubernetes secret, in the domain resource's namespace, that holds the user name and password needed to boot WebLogic Server under the `username` and `password` fields.
7679

7780
Elements related to domain [startup and shutdown](domain-lifecycle/startup.md):
81+
7882
* `serverStartPolicy`: The strategy for deciding whether to start a server. Legal values are `ADMIN_ONLY`, `NEVER`, or `IF_NEEDED`.
79-
* `serverStartState`: The state in which the server is to be started. Use `ADMIN` if server should start in the admin state. Defaults to `RUNNING`.
83+
* `serverStartState`: The state in which the server is to be started. Use `ADMIN` if the server should start in the admin state. Defaults to `RUNNING`.
8084
* `restartVersion`: If present, every time this value is updated, the operator will restart the required servers.
8185
* `replicas`: The number of Managed Servers to run in any cluster that does not specify a `replicas` count.
8286

8387
Elements related to overriding WebLogic domain configuration:
88+
8489
* `configOverrides`: The name of the config map for optional WebLogic configuration overrides.
8590
* `configOverrideSecrets`: A list of names of the secrets for optional WebLogic configuration overrides.
8691

8792
Elements related to Kubernetes pod and service generation:
93+
8894
* `serverPod`: Configuration affecting server pods for WebLogic Server instances. Most entries specify standard Kubernetes content for pods that you may want the operator to include in pods generated for WebLogic Server instances, such as labels, annotations, volumes, or scheduling constraints, including anti-affinity.
8995
* `serverService`: Customization affecting ClusterIP Kubernetes services for WebLogic Server instances.
9096

91-
Sub-sections related to the Administration Server, specific clusters or specific Managed Servers:
97+
Sub-sections related to the Administration Server, specific clusters, or specific Managed Servers:
98+
9299
* `adminServer`: Configuration for the Administration Server.
93100
* `clusters`: Configuration for specific clusters.
94101
* `managedServers`: Configuration for specific Managed Servers.
@@ -97,17 +104,18 @@ The elements `serverStartPolicy`, `serverStartState`, `serverPod` and `serverSer
97104

98105
### Pod generation
99106

100-
The operator creates a pod for each running WebLogic Server instance. This pod will have a container based on the Docker image specified by the `image` field. Additional pod or container content can be specified using the elements under `serverPod`. This includes Kubernetes sidecar and init containers, labels, annotations, volumes, volume mounts, scheduling constraints, including anti-affinity, [resource requirements](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/) or [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/).
107+
The operator creates a pod for each running WebLogic Server instance. This pod will have a container based on the Docker image specified by the `image` field. Additional pod or container content can be specified using the elements under `serverPod`. This includes Kubernetes sidecar and init containers, labels, annotations, volumes, volume mounts, scheduling constraints, including anti-affinity, [resource requirements](https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/), or [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/).
101108

102109
Prior to creating a pod, the operator replaces variable references allowing the pod content to be templates. The format of these variable references is `$(VARIABLE_NAME)` where *VARIABLE_NAME* is one of the variable names available in the container for the WebLogic Server instance. The default set of environment variables includes:
103-
* DOMAIN_NAME: The WebLogic domain name
104-
* DOMAIN_UID: The domain unique identifier
105-
* DOMAIN_HOME: The domain home location as a file system path within the container
106-
* SERVER_NAME: The WebLogic Server name
107-
* CLUSTER_NAME: The WebLogic cluster name, if this is a cluster member
108-
* LOG_HOME: The WebLogic log location as a file system path within the container
109110

110-
This example domain YAML specifies that pods for WebLogic Server instances in the "cluster-1" cluster will have a per-managed server volume and volume mount (similar to a Kubernetes StatefulSet), an init container to initialize some files in that volume, and anti-affinity scheduling so that the server instances are scheduled as much as possible on different nodes:
111+
* `DOMAIN_NAME`: The WebLogic domain name
112+
* `DOMAIN_UID`: The domain unique identifier
113+
* `DOMAIN_HOME`: The domain home location as a file system path within the container
114+
* `SERVER_NAME`: The WebLogic Server name
115+
* `CLUSTER_NAME`: The WebLogic cluster name, if this is a cluster member
116+
* `LOG_HOME`: The WebLogic log location as a file system path within the container
117+
118+
This example domain YAML file specifies that pods for WebLogic Server instances in the `cluster-1` cluster will have a per-managed server volume and volume mount (similar to a Kubernetes StatefulSet), an init container to initialize some files in that volume, and anti-affinity scheduling so that the server instances are scheduled as much as possible on different nodes:
111119

112120
```
113121
# Copyright 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
@@ -174,4 +182,4 @@ spec:
174182
replicas: 2
175183
```
176184

177-
The operator uses an "introspection" job to discover details about the WebLogic domain configuration, such as the list of clusters and network access points. The job pod for the introspector is generated using the `serverPod` entries for the administration server. Because the administration server name is not known until the introspection step is complete, the value of the `$(SERVER_NAME)` variable for the introspection job will be "introspector".
185+
The operator uses an "introspection" job to discover details about the WebLogic domain configuration, such as the list of clusters and network access points. The job pod for the introspector is generated using the `serverPod` entries for the administration server. Because the administration server name is not known until the introspection step is complete, the value of the `$(SERVER_NAME)` variable for the introspection job will be "introspector".

0 commit comments

Comments
 (0)