GitOps 설치


Red Hat OpenShift GitOps 1.9

OpenShift GitOps Operator 설치 및 Argo CD 인스턴스에 로그인

Red Hat OpenShift Documentation Team

초록

이 문서에서는 OpenShift GitOps Operator 설치를 위한 크기 조정 요구 사항 및 사전 요구 사항에 대한 정보를 제공합니다. 또한 OpenShift GitOps Operator를 설치하고 Argo CD 인스턴스에 로그인하는 방법에 대해 설명합니다.

1장. Red Hat OpenShift GitOps 설치 준비

OpenShift Container Platform에 Red Hat OpenShift GitOps를 설치하기 전에 크기 조정 요구 사항 및 사전 요구 사항에 대한 다음 정보를 읽으십시오. 크기 조정 요구 사항은 Red Hat OpenShift GitOps Operator에서 인스턴스화하는 기본 ArgoCD 인스턴스의 크기 조정 세부 정보도 제공합니다.

1.1. GitOps의 크기 조정 요구 사항

Red Hat OpenShift GitOps는 클라우드 네이티브 애플리케이션에 대한 연속 배포를 구현하는 선언적 방법입니다. GitOps를 통해 애플리케이션의 CPU 및 메모리 요구 사항을 정의하고 구성할 수 있습니다.

Red Hat OpenShift GitOps Operator를 설치할 때마다 네임스페이스의 리소스가 정의된 제한 내에 설치됩니다. 기본 설치에서 제한 또는 요청을 설정하지 않으면 Operator가 할당량이 있는 네임스페이스 내에서 실패합니다. 리소스가 충분하지 않으면 클러스터가 ArgoCD 관련 Pod를 예약할 수 없습니다. 다음 표에서는 기본 워크로드에 대한 리소스 요청 및 제한을 자세히 설명합니다.

Expand
워크로드CPU 요청CPU 제한메모리 요청메모리 제한

argocd-application-controller

1

2

1024M

2048M

applicationset-controller

1

2

512M

1024M

argocd-server

0.125

0.5

128M

256M

argocd-repo-server

0.5

1

256M

1024M

argocd-redis

0.25

0.5

128M

256M

argocd-dex

0.25

0.5

128M

256M

HAProxy

0.25

0.5

128M

256M

선택적으로 oc 명령과 함께 ArgoCD 사용자 정의 리소스를 사용하여 세부 사항을 확인하고 수정할 수도 있습니다.

oc edit argocd <name of argo cd> -n namespace
Copy to Clipboard Toggle word wrap

2장. Red Hat OpenShift GitOps 설치

Red Hat OpenShift GitOps는 Argo CD를 사용하여 클러스터 Operator, 선택적 OLM(Operator Lifecycle Manager) Operator 및 사용자 관리를 포함한 특정 클러스터 범위 리소스를 관리합니다.

2.1. 사전 요구 사항

  • OpenShift Container Platform 웹 콘솔에 액세스할 수 있습니다.
  • cluster-admin 역할의 사용자로 로그인되어 있습니다.
  • OpenShift Container Platform 클러스터에 관리자로 로그인되어 있습니다.
  • 클러스터에 Marketplace 기능이 활성화되어 있거나 Red Hat Operator 카탈로그 소스가 수동으로 구성되어 있습니다.
주의

Argo CD Operator의 커뮤니티 버전을 이미 설치한 경우 Red Hat OpenShift GitOps Operator를 설치하기 전에 Argo CD Community Operator를 제거하십시오.

이 가이드에서는 Red Hat OpenShift GitOps Operator를 OpenShift Container Platform 클러스터에 설치하고 Argo CD 인스턴스에 로그인하는 방법을 설명합니다.

중요

최신 채널을 사용하면 Red Hat OpenShift GitOps Operator의 최신 안정적인 버전을 설치할 수 있습니다. 현재 이 채널은 Red Hat OpenShift GitOps Operator를 설치하는 기본 채널입니다.

특정 버전의 Red Hat OpenShift GitOps Operator를 설치하기 위해 클러스터 관리자는 해당 gitops-<version > 채널을 사용할 수 있습니다. 예를 들어 Red Hat OpenShift GitOps Operator 버전 1.8.x를 설치하려면 gitops-1.8 채널을 사용할 수 있습니다.

2.2. 웹 콘솔에서 Red Hat OpenShift GitOps Operator 설치

웹 콘솔을 사용하여 OperatorHub에서 Red Hat OpenShift GitOps Operator를 설치할 수 있습니다.

프로세스

  1. 왼쪽 메뉴에 있는 웹 콘솔의 관리자 화면을 열고OperatorOperatorHub로 이동합니다.
  2. OpenShift GitOps 를 검색하고 Red Hat OpenShift GitOps 타일을 클릭한 다음 설치를 클릭합니다.

    Red Hat OpenShift GitOps는 클러스터의 모든 네임스페이스에 설치됩니다.

Red Hat OpenShift GitOps Operator를 설치한 후 openshift-gitops 네임스페이스에서 제공되는 즉시 사용 가능한 Argo CD 인스턴스가 자동으로 설정되고 콘솔 도구 모음에 Argo CD 아이콘이 표시됩니다. 프로젝트에서 애플리케이션에 대한 후속 Argo CD 인스턴스를 생성할 수 있습니다.

2.3. CLI를 사용하여 Red Hat OpenShift GitOps Operator 설치

CLI를 사용하여 OperatorHub에서 Red Hat OpenShift GitOps Operator를 설치할 수 있습니다.

프로세스

  1. 서브스크립션 오브젝트 YAML 파일을 생성하여 Red Hat OpenShift GitOps에 네임스페이스를 서브스크립션합니다(예: sub.yaml ).

    서브스크립션의 예

    apiVersion: operators.coreos.com/v1alpha1
    kind: Subscription
    metadata:
      name: openshift-gitops-operator
      namespace: openshift-operators
    spec:
      channel: latest 
    1
    
      installPlanApproval: Automatic
      name: openshift-gitops-operator 
    2
    
      source: redhat-operators 
    3
    
      sourceNamespace: openshift-marketplace 
    4
    Copy to Clipboard Toggle word wrap

    1
    Operator를 서브스크립션할 채널 이름을 지정합니다.
    2
    등록할 Operator의 이름을 지정합니다.
    3
    Operator를 제공하는 CatalogSource의 이름을 지정합니다.
    4
    CatalogSource의 네임스페이스입니다. 기본 OperatorHub CatalogSources에는 openshift-marketplace를 사용합니다.
  2. 클러스터에 서브스크립션 을 적용합니다.

    $ oc apply -f openshift-gitops-sub.yaml
    Copy to Clipboard Toggle word wrap
  3. 설치가 완료되면 openshift-gitops 네임스페이스의 모든 Pod가 실행 중인지 확인합니다.

    $ oc get pods -n openshift-gitops
    Copy to Clipboard Toggle word wrap

    출력 예

    NAME                                                      	READY   STATUS	RESTARTS   AGE
    cluster-b5798d6f9-zr576                                   	1/1 	Running   0      	65m
    kam-69866d7c48-8nsjv                                      	1/1 	Running   0      	65m
    openshift-gitops-application-controller-0                 	1/1 	Running   0      	53m
    openshift-gitops-applicationset-controller-6447b8dfdd-5ckgh 1/1 	Running   0      	65m
    openshift-gitops-redis-74bd8d7d96-49bjf                   	1/1 	Running   0      	65m
    openshift-gitops-repo-server-c999f75d5-l4rsg              	1/1 	Running   0      	65m
    openshift-gitops-server-5785f7668b-wj57t                  	1/1 	Running   0      	53m
    Copy to Clipboard Toggle word wrap

2.4. Argo CD 관리자 계정을 사용하여 Argo CD 인스턴스에 로그인

Red Hat OpenShift GitOps Operator는 openshift-gitops 네임스페이스에서 사용할 수 있는 즉시 사용 가능한 Argo CD 인스턴스를 자동으로 생성합니다.

사전 요구 사항

  • 클러스터에 Red Hat OpenShift GitOps Operator가 설치되어 있습니다.

프로세스

  1. 웹 콘솔의 관리자 화면에서 Operator설치된 Operator로 이동하여 Red Hat OpenShift GitOps Operator가 설치되어 있는지 확인합니다.
  2. red hat applications menu icon 메뉴 → OpenShift GitOps클러스터 Argo CD 로 이동합니다. Argo CD UI의 로그인 페이지가 새 창에 표시됩니다.
  3. 선택 사항: OpenShift Container Platform 인증 정보로 로그인하려면 cluster-admins 그룹의 사용자인지 확인한 다음 Argo CD 사용자 인터페이스에서 LOG IN VIA OPENSHIFT 옵션을 선택해야 합니다.

    참고

    cluster-admins 그룹의 사용자가 되려면 oc adm groups new cluster-admins <user > 명령을 사용합니다. 여기서 < user >는 클러스터 전체 또는 로컬로 사용자 및 그룹에 바인딩할 수 있는 기본 클러스터 역할입니다.

  4. 사용자 이름과 암호로 로그인하려면 Argo CD 인스턴스의 암호를 가져옵니다.

    1. 콘솔의 왼쪽 패널에서 화면 전환기를 사용하여 개발자 화면으로 전환합니다.
    2. 프로젝트 드롭다운 목록을 사용하여 openshift-gitops 프로젝트를 선택합니다.
    3. 왼쪽 탐색 패널을 사용하여 시크릿 페이지로 이동합니다.
    4. 암호를 표시할 argocd-cluster-cluster 인스턴스를 선택합니다.
    5. 암호를 복사합니다.
  5. 이 암호와 admin을 사용자 이름으로 사용하여 새 창에서 Argo CD UI에 로그인합니다.
참고

동일한 네임스페이스에 두 개의 Argo CD CR을 생성할 수 없습니다.

법적 공지

Copyright © 2024 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

Theme

© 2025 Red Hat