2.2.6.2. 对 apicast 镜像进行补丁
对
amp-apicast镜像流进行补丁:oc patch imagestream/amp-apicast --type=json -p '[{"op": "add", "path": "/spec/tags/-", "value": {"annotations": {"openshift.io/display-name": "AMP APIcast 2.11"}, "from": {"kind": "DockerImage", "name": "registry.redhat.io/3scale-amp2/apicast-gateway-rhel8:3scale2.11"}, "name": "2.11", "referencePolicy": {"type": "Source"}}}]'$ oc patch imagestream/amp-apicast --type=json -p '[{"op": "add", "path": "/spec/tags/-", "value": {"annotations": {"openshift.io/display-name": "AMP APIcast 2.11"}, "from": {"kind": "DockerImage", "name": "registry.redhat.io/3scale-amp2/apicast-gateway-rhel8:3scale2.11"}, "name": "2.11", "referencePolicy": {"type": "Source"}}}]'Copy to Clipboard Copied! Toggle word wrap Toggle overflow 对
apicast-stagingImageChange 触发器进行补丁:删除旧的
2.10触发器:oc set triggers dc/apicast-staging --from-image=amp-apicast:2.10 --containers=apicast-staging --remove
$ oc set triggers dc/apicast-staging --from-image=amp-apicast:2.10 --containers=apicast-staging --removeCopy to Clipboard Copied! Toggle word wrap Toggle overflow 添加新的特定于版本的触发器:
oc set triggers dc/apicast-staging --from-image=amp-apicast:2.11 --containers=apicast-staging
$ oc set triggers dc/apicast-staging --from-image=amp-apicast:2.11 --containers=apicast-stagingCopy to Clipboard Copied! Toggle word wrap Toggle overflow 这会触发
apicast-staging的重新部署。等待它重新部署、对应的新容器集就绪,并且旧容器集终止。
对
apicast-productionImageChange 触发器进行补丁:删除旧的
2.10触发器:oc set triggers dc/apicast-production --from-image=amp-apicast:2.10 --containers=apicast-production,system-master-svc --remove
$ oc set triggers dc/apicast-production --from-image=amp-apicast:2.10 --containers=apicast-production,system-master-svc --removeCopy to Clipboard Copied! Toggle word wrap Toggle overflow 添加新的特定于版本的触发器:
oc set triggers dc/apicast-production --from-image=amp-apicast:2.11 --containers=apicast-production,system-master-svc
$ oc set triggers dc/apicast-production --from-image=amp-apicast:2.11 --containers=apicast-production,system-master-svcCopy to Clipboard Copied! Toggle word wrap Toggle overflow 这会触发
apicast-production的重新部署。等待它重新部署、对应的新容器集就绪,并且旧容器集终止。