The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.
Chapter 3 Upgrading to Release 1.4
This section describes how to upgrade Oracle Cloud Native Environment from Release 1.3 to Release 1.4.
When the Oracle Cloud Native Environment packages and the Kubernetes cluster are upgraded to Release 1.4, you can use the new features in this release.
Perform each step in this chapter in order to upgrade your environment from Release 1.3 to Release 1.4.
3.1 Changing the Software Packages Source
This section contains information on setting the location for the software packages for the operating system on which you want to upgrade the Oracle Cloud Native Environment software.
3.1.1 Oracle Linux 8
If the operating system on the nodes is Oracle Linux 8, update the package source using the information in this section.
If the systems are registered to use ULN, use the ULN web
interface to subscribe each system to the
ol8_x86_64_olcne14
channel. Make sure
you unsubscribe each system from the
ol8_x86_64_olcne12
and
ol8_x86_64_olcne13
channels.
If you are using the Oracle Linux yum server for system updates, on each node
update the oracle-olcne-release-el8
release
package. Enable the ol8_olcne14
repository and disable the
ol8_olcne12
and
ol8_olcne13
repositories. On each
node, run:
sudo dnf update oracle-olcne-release-el8 sudo dnf config-manager --enable ol8_olcne14 sudo dnf config-manager --disable ol8_olcne12 ol8_olcne13
3.1.2 Oracle Linux 7
If the operating system on the nodes is Oracle Linux 7, update the package source using the information in this section.
Disable any ULN channels or Oracle Linux yum server repositories for previous releases and enable the one for Release 1.4.
If the systems are registered to use ULN, use the ULN web
interface to subscribe the systems to the
ol7_x86_64_olcne14
channel. Make sure you
unsubscribe each system from the following channels.
-
ol7_x86_64_olcne
-
ol7_x86_64_olcne11
-
ol7_x86_64_olcne12
-
ol7_x86_64_olcne13
-
ol7_x86_64_developer
If you are using the Oracle Linux yum server for system updates, on each node
update the oracle-olcne-release-el7
release
package. Enable the ol7_olcne14
repository and disable the following repositories:
-
ol7_olcne
-
ol7_olcne11
-
ol7_olcne12
-
ol7_olcne13
-
ol7_developer
On each node, run:
sudo yum update oracle-olcne-release-el7 sudo yum-config-manager --enable ol7_olcne14 sudo yum-config-manager --disable ol7_olcne ol7_olcne11 ol7_olcne12 ol7_olcne13 ol7_developer
3.2 Upgrading the Operator Node
Upgrade the operator node with the new Oracle Cloud Native Environment software packages.
-
On the operator node, stop the
olcne-api-server
service:sudo systemctl stop olcne-api-server.service
-
Update the Platform CLI, Platform API Server, and utilities packages:
sudo dnf update olcnectl olcne-api-server olcne-utils
-
Start the
olcne-api-server
service:sudo systemctl start olcne-api-server.service
-
On the operator node, stop the
olcne-api-server
service:sudo systemctl stop olcne-api-server.service
-
Update the Platform CLI, Platform API Server, and utilities packages:
sudo yum update olcnectl olcne-api-server olcne-utils
-
Start the
olcne-api-server
service:sudo systemctl start olcne-api-server.service
3.3 Upgrading the Kubernetes Nodes
Upgrade the Kubernetes nodes with the new Oracle Cloud Native Environment software packages.
-
On the node to update, stop the
olcne-agent
service:sudo systemctl stop olcne-agent.service
-
Update the Platform Agent and utilities packages:
sudo dnf update olcne-agent olcne-utils
-
Start the
olcne-agent
service:sudo systemctl start olcne-agent.service
-
On the node to update, stop the
olcne-agent
service:sudo systemctl stop olcne-agent.service
-
Update the Platform Agent and utilities packages:
sudo yum update olcne-agent olcne-utils
-
Start the
olcne-agent
service:sudo systemctl start olcne-agent.service
3.4 Upgrading the Kubernetes Cluster
Upgrade the cluster to Kubernetes Release 1.21.14-3.
On the operator node, use the olcnectl module
update command to upgrade to the latest Kubernetes release
available for Oracle Cloud Native Environment Release 1.4. This example upgrades a
Kubernetes module named mycluster
in the myenvironment
environment to Kubernetes
Release 1.21.14-3.
olcnectl module update \ --environment-name myenvironment \ --name mycluster \ --kube-version 1.21.14-3
The --kube-version
option specifies the release
to which you want to upgrade. This example uses release number
1.21.14-3.
Make sure you upgrade to the latest Kubernetes release. To get the version number of the latest Kubernetes release for Oracle Cloud Native Environment Release 1.4, see Release Notes.
If you are using the NGINX load balancer deployed by the
Platform CLI, you should also upgrade NGINX on the control
plane nodes. You specify the location from which to pull the NGINX
container image used to upgrade NGINX using the
--nginx-image
option. For example, include this
additional line in the olcnectl module update
command to upgrade NGINX from the Oracle Container Registry:
--nginx-image container-registry.oracle.com/olcne/nginx:1.17.7
Make sure you upgrade to the latest NGINX release. To get the version number of the latest NGINX container image for Oracle Cloud Native Environment Release 1.4, see Release Notes.
When each node in the cluster is upgraded to the latest Kubernetes release, the cluster's health is validated and the upgrade completes.
3.5 Upgrading Istio
If you have the Istio module installed, you must also upgrade it and upgrade the supporting Prometheus and Grafana modules.
Make sure you upgrade to the latest releases for each component in this section. To get the version numbers of the latest releases for Oracle Cloud Native Environment Release 1.4, see Release Notes.
-
On the operator node, use the olcnectl module update command to upgrade to the latest Istio release available for Oracle Cloud Native Environment Release 1.4. This example upgrades an Istio module named
myistio
in themyenvironment
environment to Istio Release 1.13.9.olcnectl module update \ --environment-name myenvironment \ --name myistio \ --istio-version 1.13.9
The
--istio-version
option specifies the release to which you want to upgrade. This example uses release number 1.13.9.When you upgrade from Istio Release 1.12.6 to 1.13.9, the update iterates through each Istio release up to Release 1.13.9. When each node in the cluster is upgraded to the next Istio release, the cluster's health is validated. If the cluster is healthy, the cycle of back up, upgrade to the next release, and cluster validation starts again, until all nodes are upgraded to the latest Istio release.
-
Upgrade to the latest Prometheus release available for Oracle Cloud Native Environment Release 1.4. This example upgrades the Prometheus module named
prometheus
(the name assigned by default by the Istio module) in themyenvironment
environment to Prometheus Release 2.30.1.olcnectl module update \ --environment-name myenvironment \ --name prometheus \ --prometheus-version 2.30.1
-
Upgrade to the latest Grafana release available for Oracle Cloud Native Environment Release 1.4. This example upgrades the Grafana module named
grafana
(the name assigned by default by the Istio module) in themyenvironment
environment to Grafana Release 7.5.15.olcnectl module update \ --environment-name myenvironment \ --name grafana \ --grafana-version 7.5.15