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: site/config-overrides.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ You can use overrides to customize domains as they are moved from QA to producti
31
31
* Override templates (also known as situational configuration templates), with names and syntax as described in [Override template names and syntax](#override-template-names-and-syntax).
32
32
* A file named `version.txt` that contains the exact string `2.0`.
33
33
* Set your domain resource `configOverrides` to the name of this configuration map.
34
-
* If templates leverage `secret macros`:
34
+
* If templates leverage `secret macros`, then:
35
35
* Create Kubernetes secrets that contain template macro values.
36
36
* Set your domain `configOverrideSecrets` to reference the aforementioned secrets.
37
37
* Stop all running WebLogic Server pods in your domain. (See [Server Lifecycle](server-lifecycle.md) and [Restarting WebLogic servers](restart.md).)
@@ -56,7 +56,7 @@ For a detailed walk-through of the runtime flow, see the [Internal design flow](
56
56
57
57
* A WebLogic domain home must not contain any situational configuration XML file in its `optconfig` directory that was not placed there by the operator. Any existing situational configuration XML files in this directory will be deleted and replaced by your operator override templates (if any).
58
58
59
-
* If you want to override a JDBC, JMS, or WLDF (diagnostics) module, the original module must be located in your domain home `config/jdbc`, `config/jms`, and `config/diagnostics` directory, respectively. These are the default locations for these types of modules.
59
+
* If you want to override a JDBC, JMS, or WLDF (diagnostics) module, then the original module must be located in your domain home `config/jdbc`, `config/jms`, and `config/diagnostics` directory, respectively. These are the default locations for these types of modules.
60
60
61
61
---
62
62
# Typical overrides
@@ -187,9 +187,9 @@ The secret macro `SECRETNAME` field must reference the name of a Kubernetes secr
187
187
* Use situational configuration `replace` and `add` verbs as follows:
188
188
* If you are adding a new bean that doesn't already exist in your original domain home configuration, then specify `add` on the MBean itself and on each attribute within the bean.
189
189
* See the `server-debug` stanza in [Override template samples](#override-template-samples) below for an example.
190
-
* If you are adding a new attribute to an existing bean in the domain home configuration, the attribute needs an `add` verb.
190
+
* If you are adding a new attribute to an existing bean in the domain home configuration, then the attribute needs an `add` verb.
191
191
* See the `max-message-size` stanza in [Override template samples](#override-template-samples) below for an example.
192
-
* If you are changing the value of an existing attribute within a domain home configuration, the attribute needs a `replace` verb.
192
+
* If you are changing the value of an existing attribute within a domain home configuration, then the attribute needs a `replace` verb.
193
193
* See the `public-address` stanza in [Override template samples](#override-template-samples) below for an example.
194
194
* When overriding `config.xml`:
195
195
* The XML namespace (`xmlns:` in the XML) must be exactly as specified in [Override template schemas](#override-template-schemas).
@@ -270,7 +270,7 @@ The following `jdbc-testDS.xml` override template demonstrates setting the URL,
270
270
* Templates can embed macros that reference environment variables or Kubernetes secrets. See [Override template macros](#override-template-macros).
271
271
* Create a Kubernetes configuration map from the directory of templates.
272
272
* The configuration map must be in the same Kubernetes namespace as the domain.
273
-
* If the configuration map is going to be used by a single `DOMAIN_UID`, we recommend adding the `weblogic.domainUID=<mydomainuid>` label to help track the resource.
273
+
* If the configuration map is going to be used by a single `DOMAIN_UID`, then we recommend adding the `weblogic.domainUID=<mydomainuid>` label to help track the resource.
274
274
* For example, assuming `./mydir` contains your `version.txt` and situation configuration template files:
275
275
```
276
276
kubectl -n MYNAMESPACE create cm MYCMNAME --from-file ./mydir
@@ -279,15 +279,15 @@ The following `jdbc-testDS.xml` override template demonstrates setting the URL,
279
279
* Create any Kubernetes secrets referenced by a template 'secret macro'.
280
280
* Secrets can have multiple keys (files) that can hold either cleartext or base64 values. We recommend that you use base64 values for passwords via `Opaque` type secrets in their `data` field, so that they can't be easily read at a casual glance. For more information, see https://kubernetes.io/docs/concepts/configuration/secret/.
281
281
* Secrets must be in the same Kubernetes namespace as the domain.
282
-
* If a secret is going to be used by a single `DOMAIN_UID`, we recommend adding the `weblogic.domainUID=<mydomainuid>` label to help track the resource.
282
+
* If a secret is going to be used by a single `DOMAIN_UID`, then we recommend adding the `weblogic.domainUID=<mydomainuid>` label to help track the resource.
* Configure the name of the configuration map in the domain CR `configOverrides` field.
289
289
* Configure the names of each secret in domain CR.
290
-
* If the secret contains the WebLogic admin `username` and `password` keys, set the domain CR `webLogicCredentialsSecret` field.
290
+
* If the secret contains the WebLogic admin `username` and `password` keys, then set the domain CR `webLogicCredentialsSecret` field.
291
291
* For all other secrets, add them to the domain CR `configOverrideSecrets` field. Note: This must be in an array format even if you only add one secret (see the sample domain resource yaml below).
292
292
* Any override changes require stopping all WebLogic pods, applying your domain resource (if it changed), and restarting the WebLogic pods before they can take effect.
293
293
* Custom override changes on an existing running domain, such as updating an override configuration map, a secret, or a domain resource, will not take effect until all running WebLogic Server pods in your domain are shutdown (so no servers are left running), and the domain is subsequently restarted with your new domain resource (if it changed), or with your existing domain resource (if you haven't changed it).
@@ -323,7 +323,7 @@ Incorrectly formatted override files may be accepted without warnings or errors,
323
323
* Make sure you've followed each step in the [Step-by-step guide](#step-by-step-guide).
324
324
325
325
* If WebLogic pods do not come up at all, then:
326
-
* In the domain's namespace, see if you can find a job named `DOMAIN_UID-introspect-domain-job` and a corresponding pod named something like `DOMAIN_UID-introspect-domain-job-xxxx`. If so, examine:
326
+
* In the domain's namespace, see if you can find a job named `DOMAIN_UID-introspect-domain-job` and a corresponding pod named something like `DOMAIN_UID-introspect-domain-job-xxxx`. If so, then examine:
* Check your operator log for Warning/Error/Severe messages.
@@ -346,9 +346,9 @@ Incorrectly formatted override files may be accepted without warnings or errors,
346
346
```
347
347
* Look in your `DOMAIN_HOME/optconfig` directory.
348
348
* This directory, or a subdirectory within this directory, should contain each of your custom situational configuration files.
349
-
* If it doesn't, this likely indicates your domain resource `configOverrides` was not set to match your custom override configuration map name, or that your custom override configuration map does not contain your override files.
349
+
* If it doesn't, then this likely indicates your domain resource `configOverrides` was not set to match your custom override configuration map name, or that your custom override configuration map does not contain your override files.
350
350
351
-
* If you'd like to verify that the situational configuration is taking effect in the WebLogic MBean tree, one way to do this is to compare the `server config` and `domain config` MBean tree values.
351
+
* If you'd like to verify that the situational configuration is taking effect in the WebLogic MBean tree, then one way to do this is to compare the `server config` and `domain config` MBean tree values.
352
352
* The `domain config` value should reflect the original value in your domain home configuration.
353
353
* The `server config` value should reflect the overridden value.
354
354
* For example, assuming your `DOMAIN_UID` is `domain1`, and your domain contains a WebLogic Server named `admin-server`, then:
0 commit comments