17.1.2 Upgrading WebLogic Kubernetes Operator
The instructions in this section relate to upgrading the WebLogic Kubernetes Operator used
by an Oracle Access Management (OAM) deployment.
Note:
This applies to WebLogic Kubernetes Operator in the 4.X release family as additional versions are released.To upgrade the WebLogic Kubernetes Operator used by the OAM deployment, perform the following steps:
- On the Kubernetes administrative host, download the new WebLogic Kubernetes Operator
source code from the operator github
project:
mkdir <workdir>/weblogic-kubernetes-operator-4.X.X
cd <workdir>/weblogic-kubernetes-operator-4.X.X
For example:git clone https://github.com/oracle/weblogic-kubernetes-operator.git --branch v4.X.X
mkdir /OAMK8S/weblogic-kubernetes-operator-4.X.X
cd /OAMK8S/weblogic-kubernetes-operator-4.X.X
git clone https://github.com/oracle/weblogic-kubernetes-operator.git --branch v4.X.X
- Run the following helm commands to upgrade the
operator::
cd <workdir>/weblogic-kubernetes-operator-4.X.X/weblogic-kubernetes-operator
For example:helm upgrade --reuse-values \ --set image=ghcr.io/oracle/weblogic-kubernetes-operator:4.X.X \ --namespace <sample-kubernetes-operator-ns> \ --wait weblogic-kubernetes-operator \ kubernetes/charts/weblogic-operator
cd /OAMK8S/weblogic-kubernetes-operator-4.X.X/weblogic-kubernetes-operator
The output will look similar to the following:helm upgrade --reuse-values \ --set image=ghcr.io/oracle/weblogic-kubernetes-operator:4.X.X \ --namespace opns \ --wait weblogic-kubernetes-operator \ kubernetes/charts/weblogic-operator
Release "weblogic-kubernetes-operator" has been upgraded. Happy Helming! NAME: weblogic-kubernetes-operator LAST DEPLOYED: <DATE> NAMESPACE: opns STATUS: deployed REVISION: 2 TEST SUITE: None
- Verify that the operator’s pod and services are running by executing the following
command:
For example:kubectl get all -n <sample-kubernetes-operator-ns>
The output will look similar to the following:kubectl get all -n opns
NAME READY STATUS RESTARTS AGE pod/weblogic-operator-b7d6df78c-mfrc4 1/1 Running 0 40s pod/weblogic-operator-webhook-7996b8b58b-frtwp 1/1 Running 0 42s NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/weblogic-operator-webhook-svc ClusterIP 10.106.51.57 <none> 8083/TCP,8084/TCP 42s NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/weblogic-operator 1/1 1 1 6d deployment.apps/weblogic-operator-webhook 1/1 1 1 42s NAME DESIRED CURRENT READY AGE replicaset.apps/weblogic-operator-5884685f4f 0 0 0 6d replicaset.apps/weblogic-operator-b7d6df78c 1 1 1 40s replicaset.apps/weblogic-operator-webhook-7996b8b58b 1 1 1 42s