리소스 사용 관리


Red Hat OpenShift GitOps 1.13

여기에 간단한 설명을 입력합니다.

Red Hat OpenShift Documentation Team

초록

이 책의 주제와 목적에 대한 간략한 개요와 요약, 일반적으로 하나 이상의 단락이 없습니다.

1장. 리소스 할당량 또는 요청 구성

Argo CD CR(사용자 정의 리소스)을 사용하면 Argo CD 워크로드에 대한 리소스 요청 및 제한을 생성, 업데이트 및 삭제할 수 있습니다.

1.1. 리소스 요청 및 제한을 사용하여 워크로드 구성

리소스 요청 및 제한을 사용하여 Argo CD 사용자 정의 리소스 워크로드를 생성할 수 있습니다. 이는 리소스 할당량으로 구성된 네임스페이스에 Argo CD 인스턴스를 배포하려면 필요합니다.

다음 Argo CD 인스턴스는 리소스 요청 및 제한이 있는 애플리케이션 컨트롤러 , ApplicationSet Controller ,Dex,Redis,Repo ServerServer 와 같은 Argo CD 워크로드를 배포합니다. 동일한 방식으로 리소스 요구 사항을 사용하여 다른 워크로드를 생성할 수도 있습니다.

apiVersion: argoproj.io/v1beta1
kind: ArgoCD
metadata:
  name: example
spec:
  server:
    resources:
      limits:
        cpu: 500m
        memory: 256Mi
      requests:
        cpu: 125m
        memory: 128Mi
    route:
      enabled: true
  applicationSet:
    resources:
      limits:
        cpu: '2'
        memory: 1Gi
      requests:
        cpu: 250m
        memory: 512Mi
  repo:
    resources:
      limits:
        cpu: '1'
        memory: 512Mi
      requests:
        cpu: 250m
        memory: 256Mi
  dex:
    resources:
      limits:
        cpu: 500m
        memory: 256Mi
      requests:
        cpu: 250m
        memory: 128Mi
  redis:
    resources:
      limits:
        cpu: 500m
        memory: 256Mi
      requests:
        cpu: 250m
        memory: 128Mi
  controller:
    resources:
      limits:
        cpu: '2'
        memory: 2Gi
      requests:
        cpu: 250m
        memory: 1Gi
Copy to Clipboard Toggle word wrap

1.2. 리소스 요구 사항을 업데이트하기 위해 Argo CD 인스턴스 패치

모든 워크로드 또는 전체 워크로드의 리소스 요구 사항을 업데이트할 수 있습니다.

프로세스

Argo CD 네임스페이스에서 Argo CD 인스턴스의 애플리케이션 컨트롤러 리소스 요청을 업데이트합니다.

oc -n argocd patch argocd example --type='json' -p='[{"op": "replace", "path": "/spec/controller/resources/requests/cpu", "value":"1"}]'

oc -n argocd patch argocd example --type='json' -p='[{"op": "replace", "path": "/spec/controller/resources/requests/memory", "value":"512Mi"}]'
Copy to Clipboard Toggle word wrap

1.3. 리소스 요청 제거

설치 후 전체 또는 모든 워크로드에 대한 리소스 요구 사항을 제거할 수도 있습니다.

프로세스

Argo CD 네임스페이스에서 Argo CD 인스턴스의 애플리케이션 컨트롤러 리소스 요청을 제거합니다.

oc -n argocd patch argocd example --type='json' -p='[{"op": "remove", "path": "/spec/controller/resources/requests/cpu"}]'

oc -n argocd argocd patch argocd example --type='json' -p='[{"op": "remove", "path": "/spec/controller/resources/requests/memory"}]'
Copy to Clipboard Toggle word wrap

법적 공지

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

© 2026 Red Hat
맨 위로 이동