Questo contenuto non è disponibile nella lingua selezionata.
Chapter 4. Creating the QuayIntegration custom resource
			Create a QuayIntegration custom resource (CR) to connect an OpenShift Container Platform cluster to a Red Hat Quay registry. The QuayIntegration CR defines the Red Hat Quay hostname, authentication details, and configuration options that the Quay Bridge Operator uses to synchronize OpenShift Container Platform projects with Red Hat Quay organizations, robot accounts, and other features.
		
			The QuayIntegration custom resource can be created by using the OpenShift Container Platform web console, or from the command-line interface.
		
Prerequisites
- You have set up Red Hat Quay and obtained an access token.
- You have deployed the Quay Bridge Operator on OpenShift Container Platform.
- 
					Optional: You have installed the OpenShift CLI (oc).
4.1. Creating the QuayIntegration custom resource using the CLI
				Use the following procedure to create the QuayIntegration custom resource using the command-line interface.
			
Procedure
- Create a - quay-integration.yaml:- touch quay-integration.yaml - $ touch quay-integration.yaml- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Use the following configuration for a minimal deployment of the - QuayIntegrationcustom resource:- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - 1
- The clusterID value should be unique across the entire ecosystem. This value is required and defaults toopenshift.
- 2
- ThecredentialsSecretproperty refers to the namespace and name of the secret containing the token that was previously created.
- 3
- Replace theQUAY_URLwith the hostname of your Red Hat Quay instance.
- 4
- If Red Hat Quay is using self signed certificates, set the property toinsecureRegistry: true.
 
For a list of all configuration fields, see "QuayIntegration configuration fields".
- Create the - QuayIntegrationcustom resource:- oc create -f quay-integration.yaml - $ oc create -f quay-integration.yaml- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
4.2. Creating the QuayIntegration custom resource using the web console
				Follow this procedure to create the QuayIntegration custom resource using the web console.
			
Procedure
- 
						Open the Administrator perspective of the web console and navigate to Operators Installed Operators. 
- Click Red Hat Quay Bridge Operator.
- On the Details page of the Quay Bridge Operator, click Create Instance on the Quay Integration API card.
- On the Create QuayIntegration page, enter the following required information in either Form view or YAML view: - 
								Name: The name that will refer to the QuayIntegrationcustom resource object.
- 
								Cluster ID: The ID associated with this cluster. This value should be unique across the entire ecosystem. Defaults to openshiftif left unspecified.
- Credentials secret: Refers to the namespace and name of the secret containing the token that was previously created.
- Quay hostname: The hostname of the Quay registry.
 
- 
								Name: The name that will refer to the 
				After the QuayIntegration custom resource is created, your OpenShift Container Platform cluster is linked to your Red Hat Quay instance. Organizations within your Red Hat Quay registry should be created for the related namespace for the OpenShift Container Platform environment.