These instructions apply to upgrading the operator within the 3.x release family as additional versions are released.
The new WebLogic Kubernetes Operator Docker image must be installed on the master node and each of the worker nodes in your Kubernetes cluster. Alternatively you can place the image in a Docker registry that your cluster can access.
Pull the WebLogic Kubernetes Operator 3.X.X image by running the following command on the master node:
$ docker pull ghcr.io/oracle/weblogic-kubernetes-operator:3.X.X
where 3.X.X
is the version of the operator you require.
Run the docker tag command as follows:
$ docker tag ghcr.io/oracle/weblogic-kubernetes-operator:3.X.X weblogic-kubernetes-operator:3.X.X
where 3.X.X
is the version of the operator downloaded.
After installing the new WebLogic Kubernetes Operator Docker image, repeat the above on the worker nodes.
On the master node, download the new WebLogic Kubernetes Operator source code from the operator github project:
$ mkdir <work directory>/weblogic-kubernetes-operator-3.X.X
$ cd <work directory>/weblogic-kubernetes-operator-3.X.X
$ git clone https://github.com/oracle/weblogic-kubernetes-operator.git --branch v3.X.X
For example:
$ cd /scratch/OAMDockerK8S/weblogic-kubernetes-operator-3.X.X
$ git clone https://github.com/oracle/weblogic-kubernetes-operator.git --branch v3.X.X
This will create the directory <work directory>/weblogic-kubernetes-operator-3.X.X/weblogic-kubernetes-operator
Run the following helm command to upgrade the operator:
$ cd <work directory>/weblogic-kubernetes-operator-3.X.X/weblogic-kubernetes-operator
$ helm upgrade --reuse-values --set image=weblogic-kubernetes-operator:3.X.X --namespace <sample-kubernetes-operator-ns> --wait weblogic-kubernetes-operator kubernetes/charts/weblogic-operator
For example:
$ cd /scratch/OAMDockerK8S/weblogic-kubernetes-operator-3.X.X/weblogic-kubernetes-operator
$ helm upgrade --reuse-values --set image=weblogic-kubernetes-operator:3.X.X --namespace opns --wait weblogic-kubernetes-operator kubernetes/charts/weblogic-operator
The output will look similar to the following:
Release "weblogic-kubernetes-operator" has been upgraded. Happy Helming!
NAME: weblogic-kubernetes-operator
LAST DEPLOYED: Mon Sep 28 02:50:07 2020
NAMESPACE: opns
STATUS: deployed
REVISION: 3
TEST SUITE: None