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"}}}]'对
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.11 --containers=apicast-staging这会触发
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.11 --containers=apicast-production,system-master-svc这会触发
apicast-production的重新部署。等待它重新部署、对应的新容器集就绪,并且旧容器集终止。