Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

image-mirrors

Introduction

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.

Example Usage

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"]
}

Requirements

Name Version
terraform >= 1.0
rhcs >= 1.7.2

Providers

Name Version
rhcs >= 1.7.2

Modules

No modules.

Resources

Name Type
rhcs_image_mirror.image_mirror resource

Inputs

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

Outputs

Name Description
image_mirror_id The unique identifier of the image mirror.