相关环境(部署安装略。。。):
jenkins 安装
k8s 集群环境部署
docker 私有仓库搭建git
jenkins 建立项目 Execute shell 构建docker镜像上传到私有仓库,以构建时间作版本命名;docker
dockerfile 内容:shell
使用SSH Publishers 插件登陆到k8s-master主机上 更新项目 tomcat
tomcat-deployment.yaml 内容ide
tomcat-service.yaml 内容插件
deployment 设置启动的是3个pods 在 kubernetes Dashboard查当作功启动3个tomcat3d