|
1 |
| -:_mod-docs-content-type: PROCEDURE |
| 1 | +:_mod-docs-content-type: CONCEPT |
2 | 2 | [id="creating-quay-integration-cr"]
|
3 | 3 | = Creating the QuayIntegration custom resource
|
4 | 4 |
|
5 |
| -In this procedure, you will create a `QuayIntegration` custom resource, which can be completed from either the web console or from the command line. |
| 5 | +Create a `QuayIntegration` custom resource (CR) to connect an {ocp} cluster to a {productname} registry. The `QuayIntegration` CR defines the {productname} hostname, authentication details, and configuration options that the {qbo} uses to synchronize {ocp} projects with {productname} organizations, robot accounts, and other features. |
| 6 | + |
| 7 | +The `QuayIntegration` custom resource can be created by using the {ocp} web console, or from the command-line interface. |
6 | 8 |
|
7 | 9 | .Prerequisites
|
8 | 10 |
|
9 | 11 | * You have set up {productname} and obtained an access token.
|
10 | 12 | * You have deployed the {qbo} on {ocp}.
|
11 |
| -* An {ocp} 4.6 or greater environment for which you have cluster administrator permissions. |
12 |
| -* Optional: You have installed the OpenShift CLI (oc). |
13 |
| -
|
14 |
| -[id="creating-quay-integration-custom-resource-cli"] |
15 |
| -== Optional: Creating the QuayIntegration custom resource using the CLI |
16 |
| - |
17 |
| -Follow this procedure to create the `QuayIntegration` custom resource using the command line. |
18 |
| - |
19 |
| -.Procedure |
20 |
| - |
21 |
| -. Create a `quay-integration.yaml`: |
22 |
| -+ |
23 |
| ----- |
24 |
| -$ touch quay-integration.yaml |
25 |
| ----- |
26 |
| - |
27 |
| -. Use the following configuration for a minimal deployment of the `QuayIntegration` custom resource: |
28 |
| -+ |
29 |
| -[source,yaml] |
30 |
| ----- |
31 |
| - apiVersion: quay.redhat.com/v1 |
32 |
| - kind: QuayIntegration |
33 |
| - metadata: |
34 |
| - name: example-quayintegration |
35 |
| - spec: |
36 |
| - clusterID: openshift <1> |
37 |
| - credentialsSecret: |
38 |
| - namespace: openshift-operators |
39 |
| - name: quay-integration<2> |
40 |
| - quayHostname: https://<QUAY_URL> <3> |
41 |
| - insecureRegistry: false <4> |
42 |
| ----- |
43 |
| -<1> The clusterID value should be unique across the entire ecosystem. This value is required and defaults to `openshift`. |
44 |
| -<2> The `credentialsSecret` property refers to the namespace and name of the secret containing the token that was previously created. |
45 |
| -<3> Replace the `QUAY_URL` with the hostname of your {productname} instance. |
46 |
| -<4> If {productname} is using self signed certificates, set the property to `insecureRegistry: true`. |
47 |
| - |
48 |
| -For a list of all configuration fields, see "QuayIntegration configuration fields". |
49 |
| - |
50 |
| -. Create the `QuayIntegration` custom resource: |
51 |
| -+ |
52 |
| ----- |
53 |
| -$ oc create -f quay-integration.yaml |
54 |
| ----- |
55 |
| - |
56 |
| -[id="creating-quay-integration-custom-resource-web-console"] |
57 |
| -== Optional: Creating the QuayIntegration custom resource using the web console |
58 |
| - |
59 |
| -Follow this procedure to create the `QuayIntegration` custom resource using the web console. |
60 |
| - |
61 |
| -.Procedure |
62 |
| - |
63 |
| -. Open the *Administrator* perspective of the web console and navigate to *Operators* -> *Installed Operators*. |
64 |
| - |
65 |
| -. Click *Red Hat {qbo}*. |
66 |
| - |
67 |
| -. On the *Details* page of the {qbo}, click *Create Instance* on the *Quay Integration* API card. |
68 |
| - |
69 |
| -. On the *Create QuayIntegration* page, enter the following required information in either *Form view* or *YAML view*: |
70 |
| -+ |
71 |
| -* *Name*: The name that will refer to the `QuayIntegration` custom resource object. |
72 |
| -* *Cluster ID*: The ID associated with this cluster. This value should be unique across the entire ecosystem. Defaults to `openshift` if left unspecified. |
73 |
| -* *Credentials secret*: Refers to the namespace and name of the secret containing the token that was previously created. |
74 |
| -* *Quay hostname*: The hostname of the Quay registry. |
75 |
| - |
76 |
| -For a list of all configuration fields, see "link:https://access.redhat.com/documentation/en-us/red_hat_quay/{producty}/html-single/configure_red_hat_quay/index#quay-integration-config-fields[QuayIntegration configuration fields]". |
77 |
| - |
78 |
| -After the `QuayIntegration` custom resource is created, your {ocp} cluster will be linked to your {productname} instance. Organizations within your {productname} registry should be created for the related namespace for the {ocp} environment. |
| 13 | +* Optional: You have installed the OpenShift CLI (`oc`). |
0 commit comments