美文网首页
搭建私有云上云环境

搭建私有云上云环境

作者: Orange_____ | 来源:发表于2019-12-10 17:10 被阅读0次

    1.搭建api&cs环境
    部署api
    clone fastone 项目
    进入fastone/tools/deploy/docker-compose/fastone_private
    修改.env中配置项
    FASTONE_SERVICE_HOST // 本地api地址
    CLUSTER_STORAGEINFOS_DEVICE // 本机ip私有地址:/fastone 本机需要和节点在一个网段里才可以公用nfs
    FASTONE_BUCKET_NAME // s3桶的名字

    ./upgrade

    第一次需要init数据库
    cp services/postgresql/init/init.sql /fastone/services/postgresql/init/init.sql
    删库
    sudo rm -rf /fastone/services/postgresql/data/

    使用pgadmin4修改api表,cluster_service, budget_service, billing_service
    修改host为cs的host:对应端口

    cp fsagent /bin/fsagent

    2.搭建private-cs环境
    修改fastone-deploy/contrib/docker-compose/fastone_cs_private中.env
    FASTONE_CS_NAME //修改cstag
    FASTONE_SERVICE_ACCOUNT // cloud api中的服务账号
    FASTONE_SERVICE_PASSWD // cloud user对应的服务密码, 在cloud-api数据库中
    BILLING_BUCKET_NAME // billing的s3bucket桶

    // dataset 上传完需要刷新

    相关文章

      网友评论

          本文标题:搭建私有云上云环境

          本文链接:https://www.haomeiwen.com/subject/btuggctx.html