1 Star 0 Fork 0

ApulisPlatform / apharbor-backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

image manager deploy document

for image-manager deployment 文档编写环境:

  • Ubuntu 18.04.1
  • x86 服务器

1. 环境准备

  1. k8s 集群
  2. docker harbor 服务器
  3. Helm
  4. dos2unix
  5. mysql server
  6. ingress controller (可参考apulisedge deployment)

2. 克隆 image-manager 项目到本地

3. 添加域名解析

C:\Windows\System32\drivers\etc

4. Helm 安装服务

进入工作目录

cd {clone目录}/image-manager/build/helm

image-manager helm 配置

** 拷贝配置文件 values.yaml 到新文件,命名为image-inst.yaml (也可自己命名为其他名字),按需修改为实际环境的配置 **

cp ./image-manager/values.yaml image-inst.yaml

按部署需求,修改为如下配置:

apulis:
  namespace: default
  imageManager:
    cluster:
      - id: 0
        desc: "image manager cluster 0"
        harborAddress: harbor.apulis.cn:8443
        harborProject: apulisedge_cluster0
        harborUser: user
        harborPasswd: passwd
    replicas: 1
    image:
      name: image-manager
      repository: harbor.apulis.cn:8443/apulisedge/image-manager:latest
      tickerRepository: harbor.apulis.cn:8443/apulisedge/image-ticker:latest
      pullPolicy: IfNotPresent
    config:
      portalPort: 8070
      logLevel: 4
      DebugModel: false
    db:
      databaseType: mysql
      database: imagedb
      dbHost: 192.168.1.199
      dbPort: 30060
      dbUser: root
      dbPass: root@123
    ingress:
      host: image.apulis.cn

需要注意的配置项:

apulis.imageManager.cluster: (数组,可同时对接多个harbor实例)

  • harborAddress: harbor地址
  • harborProject: harbor project名
  • harborUser: harbor用户
  • harborPasswd: harbor用户所用密码

apulis.imageManager.image:

  • repository: image-manager restapi 镜像名,注意版本 tag
  • tickerRepository: image-manager ticker,注意版本 tag (目前ticker暂未实现)

apulis.imageManager.db:

  • 按照数据库信息来配置即可

apulis.imageManager.ingress:

  • host: ingress入口

helm install dry-run,确认生成的yaml文件是否OK

helm install image-manager ./ -f image-inst.yaml --dry-run

确认没问题,进行实际的安装

helm install image-manager ./ -f image-inst.yaml
The MIT License (MIT) Copyright © 2021 <copyright holders> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

image manager deployent 展开 收起
Go 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/apulisplatform/apharbor-backend.git
git@gitee.com:apulisplatform/apharbor-backend.git
apulisplatform
apharbor-backend
apharbor-backend
v1.6.0

搜索帮助