Chapter 8. Monitoring and debugging the deployment process
Users can now troubleshoot problems during the deployment phase. The status in the QuayRegistry object can help you monitor the health of the components during the deployment an help you debug any problems that may arise.
Procedure
Enter the following command to check the status of your deployment:
oc get quayregistry -n quay-enterprise -o yaml
$ oc get quayregistry -n quay-enterprise -o yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Immediately after deployment, the
QuayRegistryobject will show the basic configuration:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Use the
oc get podscommand to view the current state of the deployed components:oc get pods -n quay-enterprise
$ oc get pods -n quay-enterpriseCopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow While the deployment is in progress, the
QuayRegistryobject will show the current status. In this instance, database migrations are taking place, and other components are waiting until completion:Copy to Clipboard Copied! Toggle word wrap Toggle overflow When the deployment process finishes successfully, the status in the
QuayRegistryobject shows no unhealthy components:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
8.1. Deploying Red Hat Quay from the OpenShift Container Platform console Copy linkLink copied to clipboard!
-
Create a namespace, for example,
quay-enterprise. -
Select Operators
Installed Operators, then select the Quay Operator to navigate to the Operator detail view. - Click 'Create Instance' on the 'Quay Registry' tile under 'Provided APIs'.
-
Optionally change the 'Name' of the
QuayRegistry. This will affect the hostname of the registry. All other fields have been populated with defaults. -
Click 'Create' to submit the
QuayRegistryto be deployed by the Quay Operator. -
You should be redirected to the
QuayRegistrylist view. Click on theQuayRegistryyou just created to see the details view. - Once the 'Registry Endpoint' has a value, click it to access your new Quay registry via the UI. You can now select 'Create Account' to create a user and sign in.
8.1.1. Using the Red Hat Quay UI to create the first user Copy linkLink copied to clipboard!
Use the following procedure to create the first user by the Red Hat Quay UI.
This procedure assumes that the FEATURE_USER_CREATION config option has not been set to false. If it is False, the Create Account functionality on the UI will be disabled, and you will have to use the API to create the first user.
Procedure
-
In the OpenShift Container Platform console, navigate to Operators
Installed Operators, with the appropriate namespace / project. Click on the newly installed
QuayRegistryobject to view the details. For example:
-
After the
Registry Endpointhas a value, navigate to this URL in your browser. Select Create Account in the Red Hat Quay registry UI to create a user. For example:
Enter the details for Username, Password, Email, and then click Create Account. For example:
After creating the first user, you are automatically logged in to the Red Hat Quay registry. For example: