-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
756cb63
commit 88f663e
Showing
2 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
...entation/site/content/managing-domains/major-weblogic-version-upgrade/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
+++ | ||
title = "Upgrade managed domains" | ||
date = 2023-10-05T16:43:45-05:00 | ||
weight = 6 | ||
pre = "<b> </b>" | ||
description = "Upgrade managed domains to a higher, major version." | ||
+++ | ||
|
||
|
||
This document provides guidelines for upgrading WLS and FMW/JRF infrastructure domains to a higher, major version. | ||
|
||
In general, the process for upgrading WLS and FMW/JRF infrastructure domains in Kubernetes is similar to upgrading domains on premises. For a thorough understanding, we suggest that you read the [Fusion Middleware Upgrade Guide](https://docs.oracle.com/en/middleware/fusion-middleware/12.2.1.4/asmas/planning-upgrade-oracle-fusion-middleware-12c.html#GUID-D9CEE7E2-5062-4086-81C7-79A33A200080). | ||
|
||
**Before the upgrade**, you must do the following: | ||
|
||
- If your [domain home source type]({{< relref "/managing-domains/choosing-a-model/_index.md" >}}) is Domain on Persistent Volume (DoPV), then back up the domain home. | ||
- If your domain type is `JRF`: | ||
- Back up the JRF database. | ||
- Back up the OPSS wallet file, this allows you to reuse the same JRF database schemas if you need to recreate the domain. | ||
|
||
The operator provides a helper script, the [OPSS wallet utility](https://orahub.oci.oraclecorp.com/weblogic-cloud/weblogic-kubernetes-operator/-/blob/main/kubernetes/samples/scripts/domain-lifecycle/opss-wallet.sh), for extracting the wallet file and storing it in a Kubernetes `walletFileSecret`. In addition, you should save the wallet file in a safely backed-up location, outside of Kubernetes. For example, the following command saves the OPSS wallet for the `sample-domain1` domain in the `sample-ns` namespace to a file named `ewallet.p12` in the `/tmp` directory and also stores it in the wallet secret named `sample-domain1-opss-walletfile-secret`. | ||
|
||
``` | ||
$ opss-wallet.sh -n sample-ns -d sample-domain1 -s -r -wf /tmp/ewallet.p12 -ws sample-domain1-opss-walletfile-secret | ||
``` | ||
- Make sure nothing else is accessing the database. | ||
- **Do not delete** the domain resource. | ||
{{% notice note %}} According to My Oracle Support [Doc ID 2752458.1](https://support.oracle.com/epmos/faces/DocumentDisplay?id=2752458.1), if you are using an FMW/JRF domain and upgrading from 12.2.1.3 to 12.2.1.4, then before upgrading, you do _not_ need to run the Upgrade Assistant or Reconfiguration Wizard, but we recommend moving the domain to a persistent volume. See [Move MII/JRF domains to PV]({{< relref "/managing-domains/model-in-image/move-to-pv.md" >}}). | ||
{{% /notice %}} | ||
To upgrade WLS and FMW/JRF infrastructure domains, use the following procedure. | ||
1. Shut down the domain by patching the domain and/or cluster spec `serverStartPolicy` to `Never`. For example: | ||
``` | ||
$ kubectl -n sample-domain1-ns patch domain sample-domain1 --type=json -p='[ {"op": "replace", "path": "/spec/serverStartPolicy", "value": "Never"}]' | ||
``` | ||
2. After the shutdown completes, upgrade the base image in the domain resource YAML file and redeploy the domain. | ||
You can patch the domain resource YAML file, update the base image and change `serverStartPolicy` to `IfNeeded` again, as follows: | ||
``` | ||
$ kubectl -n sample-domain1-ns patch domain sample-domain1 --type=json -p='[ {"op": "replace", "path": "/spec/serverStartPolicy", "value": "IfNeeded"}, {"op": "replace", "path":"/spec/image", "value":"<New WebLogic or Fusion Middleware base image>"]' | ||
``` |
75 changes: 75 additions & 0 deletions
75
documentation/site/content/managing-domains/model-in-image/move-to-pv.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
+++ | ||
title = "Move MII/JRF domains to PV" | ||
date = 2020-03-11T16:45:16-05:00 | ||
weight = 60 | ||
pre = "<b> </b>" | ||
description = "Moving an MII/JRF domain to a persistent volume." | ||
+++ | ||
|
||
|
||
FMW/JRF domains using the Model in Image domain home source type has been deprecated since WebLogic Kubernetes Operator 4.1. We recommend moving your domain home to Domain on Persistent Volume (Domain on PV). For more information, see [Domain On Persistent Volume]({{< relref "/managing-domains/domain-on-pv/overview.md" >}}). | ||
|
||
If you cannot move the domain to a persistent volume right now, you can use the following procedure. | ||
|
||
1. Back up the OPSS wallet and save it in a secret if you have not already done it. | ||
|
||
The operator provides a helper script, the [OPSS wallet utility](https://orahub.oci.oraclecorp.com/weblogic-cloud/weblogic-kubernetes-operator/-/blob/main/kubernetes/samples/scripts/domain-lifecycle/opss-wallet.sh), for extracting the wallet file and storing it in a Kubernetes `walletFileSecret`. In addition, you should save the wallet file in a safely backed-up location, outside of Kubernetes. For example, the following command saves the OPSS wallet for the `sample-domain1` domain in the `sample-ns` namespace to a file named `ewallet.p12` in the `/tmp` directory and also stores it in the wallet secret named `sample-domain1-opss-walletfile-secret`. | ||
|
||
``` | ||
$ opss-wallet.sh -n sample-ns -d sample-domain1 -s -r -wf /tmp/ewallet.p12 -ws sample-domain1-opss-walletfile-secret | ||
``` | ||
|
||
2. Follow the steps in [Upgrade managed domains]({{< relref "/managing-domains/major-weblogic-version-upgrade/_index.md" >}}). | ||
3. If you are using an auxiliary image in your MII/JRF domain, then it will be used as a domain creation image. If you are _not_ using an auxiliary image in your MII/JRF domain, then create a [Domain creation image]({{< relref "/managing-domains/domain-on-pv/domain-creation-images.md" >}}). | ||
4. You can delete the old domain resource YAML file by using this command: `$ kubectl delete -f <original domain resource YAML>`. | ||
5. Then, create a new domain resource YAML file. You should have at least the following changes: | ||
|
||
|
||
``` | ||
# Change type to PersistentVolume | ||
domainHomeSourceType: PersistentVolume | ||
image: <Fusion Middleware Infrastructure base image> | ||
... | ||
serverPod: | ||
... | ||
# specify the volume and volume mount information | ||
volumes: | ||
- name: weblogic-domain-storage-volume | ||
persistentVolumeClaim: | ||
claimName: sample-domain1-pvc-rwm1 | ||
volumeMounts: | ||
- mountPath: /share | ||
name: weblogic-domain-storage-volume | ||
# specify a new configuration section, remove the old configuration section. | ||
configuration: | ||
# secrets that are referenced by model yaml macros | ||
# sample-domain1-rcu-access is used for JRF domains | ||
secrets: [ sample-domain1-rcu-access ] | ||
initializeDomainOnPV: | ||
persistentVolumeClaim: | ||
metadata: | ||
name: sample-domain1-pvc-rwm1 | ||
spec: | ||
storageClassName: my-storage-class | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
domain: | ||
createIfNotExists: Domain | ||
domainCreationImages: | ||
- image: 'myaux:v6' | ||
domainType: JRF | ||
domainCreationConfigMap: sample-domain1-wdt-config-map | ||
opss: | ||
# Make sure you have already saved the wallet file secret. This allows the domain to use | ||
# an existing JRF database schemas. | ||
walletFileSecret: sample-domain1-opss-walletfile-secret | ||
walletPasswordSecret: sample-domain1-opss-wallet-password-secret | ||
``` | ||
|
||
6. Deploy the domain. If it is successful, then the domain has been migrated to a persistent volume. |