12장. 이주하다


주의

더 이상 지원되지 않는 Red Hat OpenShift Distributed Tracing Platform(Jaeger) 3.5는 Red Hat이 지원하는 Red Hat OpenShift Distributed Tracing Platform(Jaeger)의 마지막 릴리스였습니다.

더 이상 사용되지 않는 Red Hat OpenShift Distributed Tracing Platform(Jaeger) 3.5에 대한 모든 지원 및 유지 관리는 2025년 11월 3일에 종료되었습니다.

여전히 Red Hat OpenShift Distributed Tracing Platform(Jaeger)을 사용하는 경우 분산 추적 수집 및 저장을 위해 OpenTelemetry Operator 및 Tempo Operator의 Red Hat 빌드로 마이그레이션해야 합니다. 자세한 내용은 OpenTelemetry Red Hat 빌드 문서의 마이그레이션 , OpenTelemetry Red Hat 빌드 문서의 설치 및 Distributed Tracing Platform 문서의 설치를 참조하세요.

자세한 내용은 Red Hat Knowledgebase 솔루션 인 OpenShift에서 Jaeger 지원 중단 및 제거를 참조하세요.

애플리케이션에 이미 Red Hat OpenShift Distributed Tracing Platform(Jaeger)을 사용하고 있다면 OpenTelemetry 오픈 소스 프로젝트를 기반으로 하는 OpenTelemetry의 Red Hat 빌드로 마이그레이션할 수 있습니다.

OpenTelemetry의 Red Hat 빌드는 분산 시스템에서의 관찰을 용이하게 하는 일련의 API, 라이브러리, 에이전트 및 계측 도구를 제공합니다. Red Hat 빌드의 OpenTelemetry Collector는 Jaeger 프로토콜을 수집할 수 있으므로 애플리케이션에서 SDK를 변경할 필요가 없습니다.

분산 추적 플랫폼(Jaeger)에서 OpenTelemetry의 Red Hat 빌드로 마이그레이션하려면 OpenTelemetry Collector와 애플리케이션을 구성하여 추적을 원활하게 보고해야 합니다. 사이드카 및 사이드카 없는 배포를 마이그레이션할 수 있습니다.

12.1. 사이드카를 이용한 마이그레이션

OpenTelemetry Operator의 Red Hat 빌드는 배포 워크로드에 사이드카 주입을 지원하므로 Distributed Tracing Platform(Jaeger) 사이드카에서 OpenTelemetry 사이드카의 Red Hat 빌드로 마이그레이션할 수 있습니다.

사전 요구 사항

  • Red Hat OpenShift 분산 추적 플랫폼(Jaeger)은 클러스터에서 사용됩니다.
  • OpenTelemetry의 Red Hat 빌드가 설치되었습니다.

프로세스

  1. OpenTelemetry 수집기를 사이드카로 구성합니다.

    apiVersion: opentelemetry.io/v1beta1
    kind: OpenTelemetryCollector
    metadata:
      name: otel
      namespace: <otel-collector-namespace>
    spec:
      mode: sidecar
      config:
        receivers:
          jaeger:
            protocols:
              grpc: {}
              thrift_binary: {}
              thrift_compact: {}
              thrift_http: {}
        processors:
          batch: {}
          memory_limiter:
            check_interval: 1s
            limit_percentage: 50
            spike_limit_percentage: 30
          resourcedetection:
            detectors: [openshift]
            timeout: 2s
        exporters:
          otlp:
            endpoint: "tempo-<example>-gateway:8090" 
    1
    
            tls:
              insecure: true
        service:
          pipelines:
            traces:
              receivers: [jaeger]
              processors: [memory_limiter, resourcedetection, batch]
              exporters: [otlp]
    Copy to Clipboard Toggle word wrap
    1
    이 끝점은 Tempo Operator를 사용하여 배포된 TempoStack 인스턴스의 게이트웨이를 <example> 가리킵니다.
  2. 애플리케이션 실행을 위한 서비스 계정을 생성합니다.

    apiVersion: v1
    kind: ServiceAccount
    metadata:
      name: otel-collector-sidecar
    Copy to Clipboard Toggle word wrap
  3. 일부 프로세서에 필요한 권한에 대한 클러스터 역할을 생성합니다.

    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRole
    metadata:
      name: otel-collector-sidecar
    rules:
      
    1
    
    - apiGroups: ["config.openshift.io"]
      resources: ["infrastructures", "infrastructures/status"]
      verbs: ["get", "watch", "list"]
    Copy to Clipboard Toggle word wrap
    1
    resourcedetectionprocessor에는 인프라 및 인프라/상태에 대한 권한이 필요합니다.
  4. ClusterRoleBinding 을 생성하여 서비스 계정에 대한 권한을 설정합니다.

    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRoleBinding
    metadata:
      name: otel-collector-sidecar
    subjects:
    - kind: ServiceAccount
      name: otel-collector-deployment
      namespace: otel-collector-example
    roleRef:
      kind: ClusterRole
      name: otel-collector
      apiGroup: rbac.authorization.k8s.io
    Copy to Clipboard Toggle word wrap
  5. OpenTelemetry Collector를 사이드카로 배포합니다.
  6. Deployment 오브젝트에서 "sidecar.jaegertracing.io/inject": "true" 주석을 제거하여 애플리케이션에서 삽입된 Jaeger 에이전트를 제거합니다.
  7. Deployment 오브젝트의 .spec.template.metadata.annotations 필드에 sidecar.opentelemetry.io/inject: "true" 주석을 추가하여 OpenTelemetry 사이드카 자동 삽입을 활성화합니다.
  8. 생성된 서비스 계정을 사용하여 애플리케이션이 배포되면 프로세서가 올바른 정보를 가져와서 추적에 추가할 수 있습니다.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

Theme

© 2025 Red Hat