2025-03-19 15:04:57 +08:00

30 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

因为我们不是专业的讲师,所以专业的讲课交给专业的人处理。
如果想要了解devops的可以看下https://www.bilibili.com/video/BV13Y411E7nd
nfs的概念可以看下这个https://www.bilibili.com/video/BV13Q4y1C7hS/?p=63
jenkins点击部署大概会经历以下几个流程
1. 在jenkins内部对代码进行打包(maven或者npm)进行打包。
2. 然后用docker进行build构建镜像。
3. 将已经构建好的docker镜像放到harbor当中。
4. 通知k8s拉取harbor当中的镜像部署。
因此需要安装jenkins、harbor、k8s。推荐 jenkins和harbor放在一台硬盘容量的机器比如1t的硬盘。
如果只是测试环境k8s至少需要一台master2核4g一台node8核32g
如果是生产环境k8s至少需要一台master2核4g,node节点不限台内存加起来起码要超过64g。
因为用上了k8s所以有公共存储的概念还需要一台机器作为nfs。
一共至少需要4台机器
1. 一台`jenkins+harbor`1t硬盘
2. 一台k8s master2核4g
3. 一台k8s node8核32g
4. 一台nfs1t硬盘