Skip to content

Commit 9a80b83

Browse files
authored
Merge pull request #920 from oracle/config-override-doc-update
doc update
2 parents 4486c10 + fdfec87 commit 9a80b83

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

site/config-overrides.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can use overrides to customize domains as they are moved from QA to producti
3131
* 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).
3232
* A file named `version.txt` that contains the exact string `2.0`.
3333
* 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:
3535
* Create Kubernetes secrets that contain template macro values.
3636
* Set your domain `configOverrideSecrets` to reference the aforementioned secrets.
3737
* 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](
5656

5757
* 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).
5858

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.
6060

6161
---
6262
# Typical overrides
@@ -182,13 +182,14 @@ The secret macro `SECRETNAME` field must reference the name of a Kubernetes secr
182182
**Check each item below to ensure custom situational configuration takes effect:**
183183

184184
* Reference the name of the current bean and each parent bean in any hierarchy you override.
185+
* Note that the `combine-mode` verbs (`add` and `replace`) should be omitted for beans that are already defined in your original domain home configuration.
185186
* See [Override template samples](#override-template-samples) for examples.
186-
* Use situational config `replace` and `add` verbs as follows:
187-
* If you are adding a new bean that doesn't already exist in your original domain home `config.xml`, specify `add` on the MBean itself and on each attribute within the bean.
187+
* Use situational configuration `replace` and `add` verbs as follows:
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.
188189
* See the `server-debug` stanza in [Override template samples](#override-template-samples) below for an example.
189-
* If you are adding a new attribute to an existing bean in the domain home `config.xml`, 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.
190191
* See the `max-message-size` stanza in [Override template samples](#override-template-samples) below for an example.
191-
* If you are changing the value of an existing attribute within a domain home `config.xml`, 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.
192193
* See the `public-address` stanza in [Override template samples](#override-template-samples) below for an example.
193194
* When overriding `config.xml`:
194195
* The XML namespace (`xmlns:` in the XML) must be exactly as specified in [Override template schemas](#override-template-schemas).
@@ -269,7 +270,7 @@ The following `jdbc-testDS.xml` override template demonstrates setting the URL,
269270
* Templates can embed macros that reference environment variables or Kubernetes secrets. See [Override template macros](#override-template-macros).
270271
* Create a Kubernetes configuration map from the directory of templates.
271272
* The configuration map must be in the same Kubernetes namespace as the domain.
272-
* 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.
273274
* For example, assuming `./mydir` contains your `version.txt` and situation configuration template files:
274275
```
275276
kubectl -n MYNAMESPACE create cm MYCMNAME --from-file ./mydir
@@ -278,15 +279,15 @@ The following `jdbc-testDS.xml` override template demonstrates setting the URL,
278279
* Create any Kubernetes secrets referenced by a template 'secret macro'.
279280
* 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/.
280281
* Secrets must be in the same Kubernetes namespace as the domain.
281-
* 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.
282283
* For example:
283284
```
284285
kubectl -n MYNAMESPACE create secret generic my-secret --from-literal=key1=supersecret --from-literal=key2=topsecret
285286
kubectl -n MYNAMESPACE label secret my-secret weblogic.domainUID=DOMAIN_UID
286287
```
287288
* Configure the name of the configuration map in the domain CR `configOverrides` field.
288289
* Configure the names of each secret in domain CR.
289-
* 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.
290291
* 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).
291292
* 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.
292293
* 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).
@@ -322,7 +323,7 @@ Incorrectly formatted override files may be accepted without warnings or errors,
322323
* Make sure you've followed each step in the [Step-by-step guide](#step-by-step-guide).
323324
324325
* If WebLogic pods do not come up at all, then:
325-
* 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:
326327
* `kubectl -n MYDOMAINNAMESPACE describe job INTROSPECTJOBNAME`
327328
* `kubectl -n MYDOMAINNAMESPACE logs INTROSPECTPODNAME`
328329
* Check your operator log for Warning/Error/Severe messages.
@@ -345,9 +346,9 @@ Incorrectly formatted override files may be accepted without warnings or errors,
345346
```
346347
* Look in your `DOMAIN_HOME/optconfig` directory.
347348
* This directory, or a subdirectory within this directory, should contain each of your custom situational configuration files.
348-
* 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.
349350
350-
* 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.
351352
* The `domain config` value should reflect the original value in your domain home configuration.
352353
* The `server config` value should reflect the overridden value.
353354
* For example, assuming your `DOMAIN_UID` is `domain1`, and your domain contains a WebLogic Server named `admin-server`, then:

0 commit comments

Comments
 (0)