相關環境(部署安裝略。。。):
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