Upgrade an operator release

These instructions apply to upgrading operators within the 3.x release family as additional versions are released.

To upgrade the Kubernetes operator, use the helm upgrade command. Make sure that the weblogic-kubernetes-operator repository on your local machine is at the operator release to which you are upgrading. See the steps here to pull the image and set up the weblogic-kubernetes-operator repository. When upgrading the operator, the helm upgrade command requires that you supply a new Helm chart and image. For example:

$ cd ${WORKDIR}
$ helm upgrade \
  --reuse-values \
  --set image=oracle/weblogic-kubernetes-operator:3.2.1 \
  --namespace weblogic-operator-namespace \
  --wait \
  weblogic-kubernetes-operator \

Note: When the WebLogic Kubernetes Operator is upgraded from release version 3.1.1 to 3.2.1 or later, it is expected that the Administration Server pod in the domain gets restarted.

Post upgrade steps

From operator 3.1.1, the T3 channel Kubernetes service name extension is changed from -external to -ext. If the Administration Server was configured to expose a T3 channel in your domain, then follow these steps to recreate the Kubernetes service (for T3 channel) with the new name -ext.

Note: If these steps are not performed, then the domain restart using spec.serverStartPolicy, would fail to bring up the servers.

  1. Get the existing Kubernetes service name for T3 channel from the domain namespace. For example, if the domainUID is soainfra, and the Administration Server name is adminserver, then the service would be:

  2. Delete the existing Kubernetes service for T3 channel, so that operator 3.1.1 creates a new one:

    $ kubectl delete service <T3 channel service> --namespace <domain-namespace>

    For example, if the domainUID is soainfra, the Administration Server name is adminserver and domain namespace is soans, then the command would be:

    $ kubectl delete service soainfra-adminserver-external --namespace soans
  3. Then the operator automatically creates a new Kubernetes service with -ext instead of -external: