- 使用SaltStack进行基础设施自动化
- 使用NFS/Ceph进行数据存储
- 使用Helm管理所有应用
- 集成Redmine、Gitlab、Jenkins、SonarQube、Nexus
- 请参考自动化的部署https://github.com/unixhot/salt-kubernetes
- 三台虚拟机建议的最小内存是4G,内存过低会导致Pod无法调度。
- DevOps-X会安装CoreDNS、Dashboard、Heapster、Ingress,只需要部署好Kubernetes集群即可。
- 目前在Helm中配置的镜像地址为registry.devopsedu.com,所以需要在所有节点设置hosts解析。
[root@linux-node1 ~]# vim /etc/hosts
192.168.56.11 registry.devopsedu.com
[root@linux-node2 ~]# vim /etc/hosts
192.168.56.11 registry.devopsedu.com
[root@linux-node3 ~]# vim /etc/hosts
192.168.56.11 registry.devopsedu.com
所有的镜像均放置在了百度云盘,下载地址: https://pan.baidu.com/s/1P4nV8R06jBgfBVEsm9WPgg
[root@linux-node1 ~]# cd devops-x
[root@linux-node1 devops-x]# ./install.sh deploy
由于使用了Ingress,所以需要配置的hosts解析,实际生产使用,请绑定DNS。 将192.168.56.12 替换为Node IP。 C:\Windows\System32\drivers\etc\hosts
192.168.56.12 jenkins.example.com
192.168.56.12 sonar.example.com
192.168.56.12 gitlab.example.com
192.168.56.12 nexus.example.com
192.168.56.12 redmine.example.com
查看安装的应用
[root@linux-node1 ~]# helm ls
查看访问详情
[root@linux-node1 ~]# helm status redmine