下载安装包

请自行下载 KubeOperator 最新版本的离线安装包,并复制到目标机器的 /tmp 目录下

!!! tip “” 安装包下载链接: https://github.com/KubeOperator/KubeOperator/releases

解压安装包

以 root 用户 ssh 登录到目标机器, 并执行如下命令

  1. cd /tmp
  2. # 解压安装包
  3. tar zxvf KubeOperator-release-v3.x.y.tar.gz

执行安装脚本

  1. # 进入安装包目录
  2. cd KubeOperator-release-v3.x.y
  3. # 运行安装脚本
  4. /bin/bash install.sh
  5. # 等待安装脚本执行完成后,查看 KubeOperator 状态
  6. koctl status

“安装完成后,以下服务应都处于 healthy 状态。若有服务未正常启动,可以使用 koctl restart 命令进行重新启动” ``` [root@kubeoperator ~]# koctl status

  1. Name Command State Ports
  2. ------------------------------------------------------------------------------------------------------------------------------------------------
  3. kubeoperator_grafana /run.sh Up (healthy) 3000/tcp
  4. kubeoperator_kobe kobe-server Up (healthy) 8080/tcp
  5. kubeoperator_kotf kotf-server Up (healthy) 8080/tcp
  6. kubeoperator_mysql /entrypoint.sh mysqld Up (healthy) 3306/tcp, 33060/tcp
  7. kubeoperator_nexus sh -c ${SONATYPE_DIR}/star ... Up 0.0.0.0:8081->8081/tcp, 0.0.0.0:8082->8082/tcp, 0.0.0.0:8083->8083/tcp
  8. kubeoperator_nginx /docker-entrypoint.sh ngin ... Up (healthy) 0.0.0.0:80->80/tcp
  9. kubeoperator_server ko-server Up (healthy) 8080/tcp
  10. kubeoperator_ui /docker-entrypoint.sh ngin ... Up (healthy) 80/tcp
  11. kubeoperator_webkubectl sh /opt/webkubectl/start-w ... Up (healthy)
  12. ```

登录

安装成功后,通过浏览器访问,输入以下信息登录 KubeOperator。如果网络环境中有防火墙或安全组请开启 TCP/80,8081-8083 端口。

  1. 地址: http://目标服务器IP地址:80
  2. 用户名: admin
  3. 密码: kubeoperator@admin123

帮助

  1. koctl --help

升级

  1. # 进入项目目录
  2. cd KubeOperator-release-v3.x.y
  3. # 运行安装脚本
  4. koctl upgrade
  5. # 查看 KubeOperator 状态
  6. koctl status