Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ferry的Kubernetes部署
做出的更改
通过项目目录下的
Dockerfile
将ferry打包为镜像,推送至dockerhub镜像名:
beatrueman/ferry:1.0.0
在项目目录下新增了
deploy
目录,用于ferry的K8s平台部署,其中包含了helm
和kubernetes
两个目录kubernetes目录
包含以下文件:
config.yaml
:ferry的ConfigMap
,包含了ferry的rbac_model.conf
和settings.ymlsecret.yaml
:用于保存数据库凭据deploy.yaml
:包含ferry主平台的deployment
,service
和pvc
,pvc用于持久化/opt/workflow/ferry/config
mysql.yaml
:包含用于ferry的mysql数据库的statefulset
,service
和pvc
redis.yaml
:包含用于ferry的redis的deployment
,service
和pvc
sql目录
:保存了ferry.sql
和db.sql
,需要用户手动的导入到数据库中使用如下命令部署:
helm目录
目录结构如下
values.yaml介绍
使用如下命令部署:
ferry依赖于mysql
如果使用了附带的mysql,当
helm install
后,需要等待mysql容器准备好后,ferry容器才可以正常运行,期间如果ferry没有正常运行,只需要在mysql正常启动后,重启ferry容器即可(delete它)一切就绪后,注意要把
templates/mysql/sql
下的两个sql文件(ferry.sql
和db.sql
)导入名为ferry的数据库,先导入ferry.sql
,后导入db.sql
环境介绍
集群环境
helm版本
部署成功证明
helm部署
资源文件部署:
使用了自用的数据库