1、环境准备,上传golang-builder镜像到镜像仓库。
2、镜像导入到image stream中,命令如下:
oc import-image 172.18.141.72:5000/rhscl/golang-builder:latest -n openshift –confirm –insecure
3、原来项目导出模板:
vito@DESKTOP
$ oc export bc,dc,svc,secret,is,cm --as-template=template -o json > template.json
删掉不用的资源
4、在新项目中创建模板,需要配置的东西,
ImageStream的spec.tags.from.name
namespace:
DeploymentConfig.spec.triggers.from.namespace
DeploymentConfig.spec.template.spec.containers.image.from.names