kubeoperator升级步骤

当前kubeoperator版本是3.6.0

官方文档:https://kubeoperator.io/docs/installation/install/

# 离线升级需要提前下载离线安装包,并解压到 KubeOperator 部署机
# 进入升级包目录
cd KubeOperator-release-v3.10.1
# 运行安装脚本
./koctl upgrade
# 查看 KubeOperator 状态
koctl status
# tar -xf kubeoperator-release-v3.12.0-amd64.tar.gz
# cd kubeoperator-release-v3.12.0

# ll
总用量 6469632
drwxr-xr-x 4 root root       4096 2月  15 2019 docker
drwxr-xr-x 2 root root       4096 12月  9 19:12 images
-rwxr-xr-x 1 root root      10532 12月  9 19:09 install.sh
-rwxr-xr-x 1 root root       4569 12月  9 19:09 koctl
drwxr-xr-x 5 root root       4096 12月  9 19:10 kubeoperator
-rw-r--r-- 1 root root   14073973 1月  26 2021 mysql.tar.gz
-rw-r--r-- 1 root root 6610784169 11月 30 12:22 nexus-data.tar.gz
-rw-r--r-- 1 root root         39 12月  9 19:09 README.md

# ./koctl upgrade
是否执行备份,(若已经备份成功可跳过此步骤) [y/n]: y
 [Stopping KubeOperator] 
Stopping kubeoperator_nginx      ... done
Stopping kubeoperator_server     ... done
Stopping kubeoperator_ui         ... done
Stopping kubeoperator_kotf       ... done
Stopping kubeoperator_mysql      ... done
Stopping kubeoperator_nexus      ... done
Stopping kubeoperator_webkubectl ... done
Stopping kubeoperator_kobe       ... done
Removing kubeoperator_nginx      ... done
Removing kubeoperator_server     ... done
Removing kubeoperator_ui         ... done
Removing kubeoperator_kotf       ... done
Removing kubeoperator_mysql      ... done
Removing kubeoperator_nexus      ... done
Removing kubeoperator_webkubectl ... done
Removing kubeoperator_kobe       ... done
Removing network kubeoperator_default
 ... 开始备份,数据文件较大,请耐心等待,保持终端在线 
tar: kubeoperator/data/mysql/mysql.sock: 忽略套接字(socket)



 [Starting KubeOperator] 
Creating network "kubeoperator_default" with the default driver
Creating kubeoperator_mysql      ... done
Creating kubeoperator_webkubectl ... done
Creating kubeoperator_nexus      ... done
Creating kubeoperator_ui         ... done
Creating kubeoperator_kobe       ... done
Creating kubeoperator_kotf       ... done
Creating kubeoperator_server     ... done
Creating kubeoperator_nginx      ... done
 备份完成,备份文件存放至: /opt/kubeoperator_backup/kubeoperator-backup-2021-12-21_10:26:21.tar.gz 
离线安装
 ... 停止KubeOperator服务 
 [Stopping KubeOperator] 
Stopping kubeoperator_nginx      ... done
Stopping kubeoperator_server     ... done
Stopping kubeoperator_kotf       ... done
Stopping kubeoperator_kobe       ... done
Stopping kubeoperator_ui         ... done
Stopping kubeoperator_nexus      ... done
Stopping kubeoperator_webkubectl ... done
Stopping kubeoperator_mysql      ... done
Removing kubeoperator_nginx      ... done
Removing kubeoperator_server     ... done
Removing kubeoperator_kotf       ... done
Removing kubeoperator_kobe       ... done
Removing kubeoperator_ui         ... done
Removing kubeoperator_nexus      ... done
Removing kubeoperator_webkubectl ... done
Removing kubeoperator_mysql      ... done
Removing network kubeoperator_default
 ... 加载镜像 
Loaded image: registry.cn-qingdao.aliyuncs.com/kubeoperator/kobe:v3.12.0-amd64
Loaded image: registry.cn-qingdao.aliyuncs.com/kubeoperator/kotf:v3.12.0-amd64
Loaded image: registry.cn-qingdao.aliyuncs.com/kubeoperator/kubepi-server:v1.3.0-amd64
Loaded image: registry.cn-qingdao.aliyuncs.com/kubeoperator/mysql-server:8.0.21-amd64
Loaded image: registry.cn-qingdao.aliyuncs.com/kubeoperator/neeko:v3.12.0-amd64
Loaded image: registry.cn-qingdao.aliyuncs.com/kubeoperator/nexus3:3.25.0-amd64
Loaded image: registry.cn-qingdao.aliyuncs.com/kubeoperator/nginx:1.19.2-amd64
Loaded image: registry.cn-qingdao.aliyuncs.com/kubeoperator/server:v3.12.0-amd64
Loaded image: registry.cn-qingdao.aliyuncs.com/kubeoperator/webkubectl:v2.6.0-amd64
 ... 解压离线包 
 [Starting KubeOperator] 
Creating network "kubeoperator_default" with the default driver
Creating kubeoperator_kotf       ... done
Creating kubeoperator_mysql      ... done
Creating kubeoperator_kubepi     ... done
Creating kubeoperator_ui         ... done
Creating kubeoperator_nexus      ... done
Creating kubeoperator_webkubectl ... done
Creating kubeoperator_kobe       ... done
Creating kubeoperator_server     ... done
Creating kubeoperator_nginx      ... done
 升级完成,当前版本: v3.12.0 
posted @ 2021-12-21 10:42  哈喽哈喽111111  阅读(119)  评论(0编辑  收藏  举报