- ImageStreams store metadata (tags and references) that point to images in registries — they do not store image layer data.
- They let you decouple image publishing from deployment manifests so CI/CD pipelines can push images and trigger rollouts automatically.
- OpenShift’s build and deployment systems integrate with ImageStreams to support automated image-change triggers.
- A new image is pushed to a registry (for example,
myapp:3.4is pushed or a tag is moved). - The ImageStream tracks the registry location and records the tag-to-digest mapping (it updates the ImageStreamTag).
- Builds and deployments configured to watch that ImageStream receive image-change notifications and can roll out new images automatically.
Key behaviors and benefits
- ImageStreams maintain tag metadata and references; the actual image blobs remain in the source registry.
- Using ImageStreams avoids editing multiple deployment manifests to change image tags; the ImageStreamTag provides a stable reference.
- Native OpenShift triggers (e.g., ImageChange) can perform controlled, automated rollouts when a tag changes.
- This is functionally similar to a rolling update: a new image version becomes available and the platform updates running pods in a controlled way.
- ImageStreams act as watchers or pointers to registries. When a registry image is updated (a new digest under a given tag), the ImageStream can be updated to point to the new digest.
- You can map tags to digests and keep a stable ImageStreamTag name that deployments reference.
- Deployments or DeploymentConfigs configured with an ImageChange trigger or that reference
ImageStreamTagwill consume new images automatically without manual manifest edits.
myapp:3.4 is updated, the DeploymentConfig can automatically roll out the new image.
- Use ImageStreams to decouple image publishing from deployment manifests — this streamlines CI/CD: image builds update ImageStreams and deployments respond automatically.
- Remember: ImageStreams store only metadata (tags and digests). Actual pulls still happen from the referenced registry during deployment.
- For fully automated flows on OpenShift, integrate builds → ImageStream tag updates → DeploymentConfig (or Deployment) triggers.
- When referencing external registries, ensure the cluster has appropriate pull secrets and network access to those registries.
ImageStreams store tag mappings and metadata, not the image layers themselves. They act as a pointer to the registry and enable triggers for builds and deployments.