此内容没有您所选择的语言版本。

Chapter 4. Deploying Red Hat Quay


This procedure:

  • Installs the Red Hat Quay Setup Operator on OpenShift from the OperatorHub
  • Deploys a Red Hat Quay cluster on OpenShift with the Setup Operator

You have the option of changing dozens of settings before deploying the Red Hat Quay Setup Operator. The Operator automates the entire start-up process, by-passing the Red Hat Quay config tool. You can choose to skip the Operator’s automated configuration and use the config tool directly.

Prerequisites

  • An OpenShift 3.x or 4.x cluster
  • Cluster-scope admin privilege to the OpenShift cluster

Procedure

You have two choices for deploying the Red Hat Quay Operator:

  • Advanced Setup: Go through the Customizing your Red Hat Quay cluster section and change any setting you desire before running this procedure.
  • Standard Setup: Just step through the procedure as is to use all the default setting.

4.1. Install the Red Hat Quay Setup Operator

  1. From the OpenShift console, select Operators OperatorHub, then select the Red Hat Quay Operator.
  2. Select Install. The Operator Subscription page appears.
  3. Choose the following then select Subscribe:

    • Installation Mode: Select a specific namespace to install to
    • Update Channel: Choose the update channel (only one may be available)
    • Approval Strategy: Choose to approve automatic or manual updates

4.2. Deploy a Red Hat Quay ecosystem

  1. See the Accessing Red Hat Quay article for information on getting credentials needed to obtain the quay container from Quay.io. Then put those credentials in a file. In this example, we create a config.json in the local directory.
  2. Create a secret that includes your credentials, as follows:

    $ oc create secret generic redhat-pull-secret \
        --from-file=".dockerconfigjson=config.json" --type='kubernetes.io/dockerconfigjson'
  3. Create a custom resource file (in this example, named quayecosystem_cr.yaml) or copy one from the quay-operator examples page. This example uses default settings:

    apiVersion: redhatcop.redhat.io/v1alpha1
    kind: QuayEcosystem
    metadata:
      name: example-quayecosystem
    spec:
      quay:
        imagePullSecretName: redhat-pull-secret
  4. Go through the Customizing your Red Hat Quay cluster section to choose configuration settings you want to change.
  5. Deploy the Quay ecosystem from your custom resource file as follows:

    $ oc create -f quayecosystem_cr.yaml

    Deploying the custom resource automatically creates and configures the Red Hat Quay cluster, which includes the Red Hat Quay, PostgreSQL, and Redis services.

  6. To check the status of your Red Hat Quay cluster, log in to your OpenShift web console, select Projects, then select the quay-enterprise project to see the following:

    The Red Hat Quay Setup Operator deployed in OpenShift

If Red Hat Quay is running, here is how to get started using your Red Hat Quay configuration:

  • Get the route to your new Red Hat Quay cluster as follows:

    $ oc get route
    NAME                       HOST/PORT
           PATH                     SERVICES PORT TERMINATION           WILDCARD
    example-quayecosystem-quay example-quayecosystem-quay-default.example.com
           example-quayecosystem-quay        8443 passthrough/Redirect  None
  • Using that route, log in with the superuser credentials (Username: quay and Password: password or change credentials as described in the next section)

Additional resources

  • For more details on the Red Hat Quay Setup Operator, see the upstream quay-operator project.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部