2.2.4.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.9"}, "from": { "kind": "DockerImage", "name": "registry.redhat.io/3scale-amp2/apicast-gateway-rhel8:3scale2.9"}, "name": "2.9", "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.9"}, "from": { "kind": "DockerImage", "name": "registry.redhat.io/3scale-amp2/apicast-gateway-rhel8:3scale2.9"}, "name": "2.9", "referencePolicy": {"type": "Source"}}}]'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 对
apicast-staging
ImageChange 触发器进行补丁:删除最新的触发器:
oc set triggers dc/apicast-staging --from-image=amp-apicast:latest --containers=apicast-staging --remove
oc set triggers dc/apicast-staging --from-image=amp-apicast:latest --containers=apicast-staging --remove
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 添加新的特定于版本的触发器:
oc set triggers dc/apicast-staging --from-image=amp-apicast:2.9 --containers=apicast-staging
oc set triggers dc/apicast-staging --from-image=amp-apicast:2.9 --containers=apicast-staging
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 这会触发
apicast-staging
的重新部署。等待它重新部署、对应的新容器集就绪,并且旧容器集终止。
对
apicast-production
ImageChange 触发器进行补丁:删除最新的触发器:
oc set triggers dc/apicast-production --from-image=amp-apicast:latest --containers=apicast-production,system-master-svc --remove
oc set triggers dc/apicast-production --from-image=amp-apicast:latest --containers=apicast-production,system-master-svc --remove
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 添加新的特定于版本的触发器:
oc set triggers dc/apicast-production --from-image=amp-apicast:2.9 --containers=apicast-production,system-master-svc
oc set triggers dc/apicast-production --from-image=amp-apicast:2.9 --containers=apicast-production,system-master-svc
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 这会触发
apicast-production
的重新部署。等待它重新部署、对应的新容器集就绪,并且旧容器集终止。从
ImageStream
中删除:latest
标签:oc tag -d amp-apicast:latest
oc tag -d amp-apicast:latest
Copy to Clipboard Copied! Toggle word wrap Toggle overflow