Upgrade DCE 5.0 Submodules¶
DCE 5.0 consists of more than ten sub-modules, such as container management, global management, observability, etc. Each sub-module can be independently upgraded.
This guide will introduce how to use dce5-installer
package to upgrade any of these submodules offline.
Prerequisites¶
- Deploy DCE 5.0, refer to Offline Install Enterprise Package.
- Make sure that your bootstrapping node is running well.
- Decide which version you want to upgrade to, refer to Release Notes.
Upgrade Steps¶
This section demonstrates how to upgrade a submodule from v0.5.0 to v0.6.0.
Note
Only the submodules that have already been installed in the current environment will be upgraded. Those not installed will be skipped.
-
Download v0.6.0 Offline Package
You can download the latest version from the Download Center.
After downloading, decompress the offline package. Take the offline package for AMD64 architecture as an example:
-
Modify
clusterConfig.yaml
to make it applicable in your environment.Note
As v0.6.0 updated the structure of
clusterConfig.yaml
file, refer to Cluster Configuration File Description, you must ensure that the parameters used are consistent with those in v0.5.0 and that the file structure is consistent with that of v0.6.0 during upgrading.Currently, only the
built-in
method ofimagesAndCharts
has been tested.The file is located in the
offline/sample
directory of the decompressed offline package. The sample configuration file is as follows:Example of
clusterConfig.yaml
apiVersion: provision.daocloud.io/v1alpha3 kind: ClusterConfig metadata: spec: clusterName: my-cluster loadBalancer: type: metallb istioGatewayVip: 172.30.**.**/32 insightVip: 172.30.**.**/32 masterNodes: - nodeName: "g-master1" ip: 172.30.**.** ansibleUser: "root" ansiblePass: "*****" workerNodes: - nodeName: "g-worker1" ip: 172.30.**.** ansibleUser: "root" ansiblePass: "*****" - nodeName: "g-worker2" ip: 172.30.**.** ansibleUser: "root" ansiblePass: "*****" fullPackagePath: "/home/installer/offline" osRepos: type: builtin isoPath: "/home/installer/CentOS-7-x86_64-DVD-2207-02.iso" osPackagePath: "/home/installer/os-pkgs-centos7-v0.4.4.tar.gz" imagesAndCharts: type: builtin addonPackage: binaries: type: builtin # (1)
- official-service (default value), builtin or external
-
Configure
mainfest.yaml
(optional)The
mainfest.yaml
file locates in theoffline/sample
directory of the decompressed offline package.If some submodules do not need upgrade, you can set
enable
asfalse
. For example, the following configuration meansKpanda
(i.e., Container Management) will not be upgraded. -
Execute the upgrade command
./offline/dce5-installer cluster-create -c sample/clusterconfig.yaml -m sample/manifest.yaml --upgrade 4,5,gproduct
Upgrade parameters:
install-app
orcluster-create
: means the mode used when you installed DCE 5.0. If the original submodules were installed withcluster-create
, also use this command when upgrading--upgrade
can be abbreviated as-u
.- After v0.7.0, you can only use
--upgrade gproduct
, instead of--upgrade 4,5,gproduct
When you succeeded, you will see: