검색

2.2.2. CLI를 사용하여 미터링 설치

download PDF

OpenShift Container Platform CLI를 사용하여 Metering Operator를 설치할 수 있습니다.

프로세스

  1. Metering Operator의 Namespace 오브젝트 YAML 파일을 생성합니다. CLI를 사용하여 네임스페이스를 생성해야 합니다. 예를 들어 metering-namespace.yaml은 다음과 같습니다.

    apiVersion: v1
    kind: Namespace
    metadata:
      name: openshift-metering 1
      annotations:
        openshift.io/node-selector: "" 2
      labels:
        openshift.io/cluster-monitoring: "true"
    1
    openshift-metering 네임스페이스에 미터링을 배포하는 것이 좋습니다.
    2
    피연산자 Pod에 대한 특정 노드 선택기를 구성하기 전에 이 주석을 포함합니다.
  2. Namespace 오브젝트를 생성합니다.

    $ oc create -f <file-name>.yaml

    예를 들면 다음과 같습니다.

    $ oc create -f openshift-metering.yaml
  3. OperatorGroup 오브젝트 YAML 파일을 생성합니다. 예를 들어 Metering-og는 다음과 같습니다.

    apiVersion: operators.coreos.com/v1
    kind: OperatorGroup
    metadata:
      name: openshift-metering 1
      namespace: openshift-metering 2
    spec:
      targetNamespaces:
      - openshift-metering
    1
    이름은 임의의 이름입니다.
    2
    openshift-metering 네임스페이스를 지정합니다.
  4. Subscription 오브젝트 YAML 파일을 생성하여 Metering Operator에 네임스페이스를 등록합니다. 이 오브젝트는 redhat-operators 카탈로그 리소스에서 가장 최근 릴리스된 버전을 대상으로 합니다. 예를 들어 metering-sub.yaml은 다음과 같습니다.

    apiVersion: operators.coreos.com/v1alpha1
    kind: Subscription
    metadata:
      name: metering-ocp 1
      namespace: openshift-metering 2
    spec:
      channel: "4.7" 3
      source: "redhat-operators" 4
      sourceNamespace: "openshift-marketplace"
      name: "metering-ocp"
      installPlanApproval: "Automatic" 5
    1
    이름은 임의의 이름입니다.
    2
    openshift-metering 네임스페이스를 지정해야 합니다.
    3
    4.7을 채널로 지정합니다.
    4
    metering-ocp 패키지 매니페스트를 포함하는 redhat-operators 카탈로그 리소스를 지정합니다. OpenShift Container Platform이 제한된 네트워크(연결이 끊긴 클러스터)에 설치된 경우 OLM(Operator Lifecycle Manager)을 구성할 때 생성된 CatalogSource 오브젝트의 이름을 지정합니다.
    5
    "자동" 설치 계획 승인을 지정합니다.
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

© 2024 Red Hat, Inc.