This Terraform sub-module manages the image mirrors for ROSA HCP clusters. It enables you to efficiently configure image digest mirror sets after cluster deployment. With this module, you can easily set up container image mirroring to redirect image pulls from source registries to mirror registries, enabling zero-egress networking and improved performance.
module "imagemirror" {
source = "terraform-redhat/rosa-hcp/rhcs//modules/image-mirrors"
cluster_id = "cluster-id-123"
type = "digest"
source_registry = "registry.redhat.io"
mirrors = ["mirror.example.com"]
}
| Name |
Version |
| rhcs |
>= 1.7.2 |
No modules.
| Name |
Description |
Type |
Default |
Required |
| cluster_id |
Identifier of the cluster. |
string |
n/a |
yes |
| mirrors |
List of mirror registry hostnames. |
list(string) |
n/a |
yes |
| source_registry |
The source registry hostname. |
string |
n/a |
yes |
| type |
The type of the image digest mirror set. |
string |
n/a |
yes |
| Name |
Description |
| image_mirror_id |
The unique identifier of the image mirror. |