These instructions apply to upgrading operators within the 3.x release family as additional versions are released.
On the master node, download the new WebLogic Kubernetes Operator source code from the operator github project:
$ mkdir <workdir>/weblogic-kubernetes-operator-3.X.X
$ cd <workdir>/weblogic-kubernetes-operator-3.X.X
$ git clone https://github.com/oracle/weblogic-kubernetes-operator.git --branch v3.X.X
For example:
$ mkdir /scratch/OIGK8S/weblogic-kubernetes-operator-3.X.X
$ cd /scratch/OIGK8S/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 <workdir>/weblogic-kubernetes-operator-3.X.X/weblogic-kubernetes-operator
Run the following helm command to upgrade the operator:
$ cd <workdir>/weblogic-kubernetes-operator-3.X.X/weblogic-kubernetes-operator
$ helm upgrade --reuse-values --set image=ghcr.io/oracle/weblogic-kubernetes-operator:3.X.X --namespace <sample-kubernetes-operator-ns> --wait weblogic-kubernetes-operator kubernetes/charts/weblogic-operator
For example:
$ cd /scratch/OIGK8S/weblogic-kubernetes-operator-3.X.X/weblogic-kubernetes-operator
$ helm upgrade --reuse-values --set image=ghcr.io/oracle/weblogic-kubernetes-operator:3.X.X --namespace operator --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: Tue Mar 15 09:24:40 2022
NAMESPACE: operator
STATUS: deployed
REVISION: 3
TEST SUITE: None
Verify that the operator’s pod and services are running by executing the following command:
$ kubectl get all -n <sample-kubernetes-operator-ns>
For example:
$ kubectl get all -n opns
The output will look similar to the following:
NAME READY STATUS RESTARTS AGE
pod/weblogic-operator-69546866bd-h58sk 2/2 Running 0 112s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/internal-weblogic-operator-svc ClusterIP 10.106.72.42 <none> 8082/TCP 2d
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/weblogic-operator 1/1 1 1 2d
NAME DESIRED CURRENT READY AGE
replicaset.apps/weblogic-operator-676d5cc6f4 0 0 0 2d
replicaset.apps/weblogic-operator-69546866bd 1 1 1 112s