9장. 배포 프로세스 모니터링 및 디버깅


사용자는 배포 단계에서 문제를 해결할 수 있습니다. QuayRegistry 오브젝트의 상태는 배포 중에 구성 요소의 상태를 모니터링하는 데 도움이 될 수 있으며 발생할 수 있는 문제를 디버깅하는 데 도움이 될 수 있습니다.

프로세스

  1. 다음 명령을 입력하여 배포 상태를 확인합니다.

    $ oc get quayregistry -n quay-enterprise -o yaml
    Copy to Clipboard Toggle word wrap

    출력 예

    배포 직후 QuayRegistry 오브젝트에는 기본 설정이 표시됩니다.

    apiVersion: v1
    items:
    - apiVersion: quay.redhat.com/v1
      kind: QuayRegistry
      metadata:
        creationTimestamp: "2021-09-14T10:51:22Z"
        generation: 3
        name: example-registry
        namespace: quay-enterprise
        resourceVersion: "50147"
        selfLink: /apis/quay.redhat.com/v1/namespaces/quay-enterprise/quayregistries/example-registry
        uid: e3fc82ba-e716-4646-bb0f-63c26d05e00e
      spec:
        components:
        - kind: postgres
          managed: true
        - kind: clair
          managed: true
        - kind: redis
          managed: true
        - kind: horizontalpodautoscaler
          managed: true
        - kind: objectstorage
          managed: true
        - kind: route
          managed: true
        - kind: mirror
          managed: true
        - kind: monitoring
          managed: true
        - kind: tls
          managed: true
        - kind: clairpostgres
          managed: true
        configBundleSecret: example-registry-config-bundle-kt55s
    kind: List
    metadata:
      resourceVersion: ""
      selfLink: ""
    Copy to Clipboard Toggle word wrap
  2. 배포된 구성 요소의 현재 상태를 보려면 oc get pods 명령을 사용합니다.

    $ oc get pods -n quay-enterprise
    Copy to Clipboard Toggle word wrap

    출력 예

    NAME                                                   READY   STATUS              RESTARTS   AGE
    example-registry-clair-app-86554c6b49-ds7bl            0/1     ContainerCreating   0          2s
    example-registry-clair-app-86554c6b49-hxp5s            0/1     Running             1          17s
    example-registry-clair-postgres-68d8857899-lbc5n       0/1     ContainerCreating   0          17s
    example-registry-quay-app-upgrade-h2v7h                0/1     ContainerCreating   0          9s
    example-registry-quay-database-66f495c9bc-wqsjf        0/1     ContainerCreating   0          17s
    example-registry-quay-mirror-854c88457b-d845g          0/1     Init:0/1            0          2s
    example-registry-quay-mirror-854c88457b-fghxv          0/1     Init:0/1            0          17s
    example-registry-quay-postgres-init-bktdt              0/1     Terminating         0          17s
    example-registry-quay-redis-f9b9d44bf-4htpz            0/1     ContainerCreating   0          17s
    Copy to Clipboard Toggle word wrap

  3. 배포가 진행 중인 동안 QuayRegistry 오브젝트에 현재 상태가 표시됩니다. 이 경우 데이터베이스 마이그레이션이 수행되고 기타 구성 요소가 완료될 때까지 대기 중입니다.

      status:
        conditions:
        - lastTransitionTime: "2021-09-14T10:52:04Z"
          lastUpdateTime: "2021-09-14T10:52:04Z"
          message: all objects created/updated successfully
          reason: ComponentsCreationSuccess
          status: "False"
          type: RolloutBlocked
        - lastTransitionTime: "2021-09-14T10:52:05Z"
          lastUpdateTime: "2021-09-14T10:52:05Z"
          message: running database migrations
          reason: MigrationsInProgress
          status: "False"
          type: Available
        lastUpdated: 2021-09-14 10:52:05.371425635 +0000 UTC
        unhealthyComponents:
          clair:
          - lastTransitionTime: "2021-09-14T10:51:32Z"
            lastUpdateTime: "2021-09-14T10:51:32Z"
            message: 'Deployment example-registry-clair-postgres: Deployment does not have minimum availability.'
            reason: MinimumReplicasUnavailable
            status: "False"
            type: Available
          - lastTransitionTime: "2021-09-14T10:51:32Z"
            lastUpdateTime: "2021-09-14T10:51:32Z"
            message: 'Deployment example-registry-clair-app: Deployment does not have minimum availability.'
            reason: MinimumReplicasUnavailable
            status: "False"
            type: Available
          mirror:
          - lastTransitionTime: "2021-09-14T10:51:32Z"
            lastUpdateTime: "2021-09-14T10:51:32Z"
            message: 'Deployment example-registry-quay-mirror: Deployment does not have minimum availability.'
            reason: MinimumReplicasUnavailable
            status: "False"
            type: Available
    Copy to Clipboard Toggle word wrap
  4. 배포 프로세스가 완료되면 QuayRegistry 오브젝트의 상태가 비정상 구성 요소를 표시하지 않습니다.

      status:
        conditions:
        - lastTransitionTime: "2021-09-14T10:52:36Z"
          lastUpdateTime: "2021-09-14T10:52:36Z"
          message: all registry component healthchecks passing
          reason: HealthChecksPassing
          status: "True"
          type: Available
        - lastTransitionTime: "2021-09-14T10:52:46Z"
          lastUpdateTime: "2021-09-14T10:52:46Z"
          message: all objects created/updated successfully
          reason: ComponentsCreationSuccess
          status: "False"
          type: RolloutBlocked
        currentVersion: {producty}
        lastUpdated: 2021-09-14 10:52:46.104181633 +0000 UTC
        registryEndpoint: https://example-registry-quay-quay-enterprise.apps.docs.quayteam.org
        unhealthyComponents: {}
    Copy to Clipboard Toggle word wrap

9.1. OpenShift Container Platform 콘솔에서 Red Hat Quay 배포

  1. 네임스페이스를 생성합니다(예: quay-enterprise ).
  2. Operators 설치된 Operator 를 선택한 다음 Quay Operator를 선택하여 Operator 세부 정보 보기로 이동합니다.
  3. '제공된 API' 아래의 'Quay Registry' 타일에서 '인스턴스 생성'을 클릭합니다.
  4. 선택적으로 QuayRegistry 의 '이름'을 변경합니다. 이는 레지스트리의 호스트 이름에 영향을 미칩니다. 다른 모든 필드는 기본값으로 채워져 있습니다.
  5. 'Create'를 클릭하여 Quay Operator가 배포할 QuayRegistry 를 제출합니다.
  6. QuayRegistry 목록 보기로 리디렉션됩니다. 방금 생성한 QuayRegistry 를 클릭하여 세부 정보 보기를 확인합니다.
  7. 'Registry Endpoint'에 값이 있으면 이를 클릭하여 UI를 통해 새 Quay 레지스트리에 액세스합니다. 이제 '계정 만들기'를 선택하여 사용자를 생성하고 로그인할 수 있습니다.

9.1.1. Red Hat Quay UI를 사용하여 첫 번째 사용자 생성

다음 절차에 따라 Red Hat Quay UI에서 첫 번째 사용자를 생성합니다.

참고

이 절차에서는 FEATURE_USER_CREATION 구성 옵션이 false로 설정되지 않은 것으로 가정합니다. False 인 경우 UI의 계정 만들기 기능이 비활성화되고 API를 사용하여 첫 번째 사용자를 생성해야 합니다.

프로세스

  1. OpenShift Container Platform 콘솔에서 적절한 네임스페이스/프로젝트를 사용하여 Operator 설치된 Operator 로 이동합니다.
  2. 새로 설치된 QuayRegistry 오브젝트를 클릭하여 세부 정보를 확인합니다. 예를 들면 다음과 같습니다.

    QuayRegistry details

  3. Registry Endpoint 에 값이 있으면 브라우저에서 이 URL로 이동합니다.
  4. Red Hat Quay 레지스트리 UI에서 계정 만들기 를 선택하여 사용자를 생성합니다. 예를 들면 다음과 같습니다.

    Create Account

  5. 사용자 이름 , 암호,이메일에 대한 세부 정보를 입력한 다음 Create Account 를 클릭합니다. 예를 들면 다음과 같습니다.

    Enter account details

첫 번째 사용자를 생성한 후 Red Hat Quay 레지스트리에 자동으로 로그인됩니다. 예를 들면 다음과 같습니다.

Initial log in

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat