• EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

문제 신고

Windows 및 Linux 노드가 있는 하이브리드 클러스터에 Kubernetes 설치

이 문서에서는 Windows 및 Linux 노드가 있는 클러스터에 대한 Kubernetes 통합 설치를 명확히 설명합니다. 측정, 도구 프로세스는 nri-bundle 차트를 Linux 노드에 설치한 다음 newrelic-logging 하위 차트를 생성합니다. 하위 차트를 사용하면 Windows 및 Linux 노드 모두에서 통합을 실행할 수 있습니다.

새로운 nri-kubernetes v3 아키텍처는 아직 Windows를 지원하지 않습니다. Windows 워크로드를 모니터링할 수 있는 독립 실행형 릴리스로 newrelic-infrastructure 차트를 설치합니다.

전제 조건

이 통합을 사용하려면 다음을 수행해야 합니다.

  • 컨테이너 이미지를 Windows 노드로 끌어오는 기능을 갖춘 Linux 및 Windows용 하이브리드 클러스터가 있습니다.

  • 네임스페이스를 만듭니다.

    bash
    $
    helm repo add newrelic https://helm-charts.newrelic.com
    $
    helm repo update
    $
    kubectl create namespace newrelic

하이브리드 클러스터에 통합 설치

하위 차트 정의

값을 정의하는 Yaml 파일을 만듭니다. 이 파일은 Helm이 설치할 다양한 하위 차트를 정의한 다음 여기에 값을 할당합니다.

values.yaml 이름을 지정할 수 있는 yaml 파일의 예는 다음과 같습니다.

global:
licenseKey: mykey
cluster: mycluster
lowDataMode: true
newrelic-infrastructure:
enabled: true
nodeSelector:
kubernetes.io/os: linux
kube-state-metrics:
enabled: true
image:
tag: v2.10.0
nodeSelector:
kubernetes.io/os: linux
nri-kube-events:
enabled: true
nodeSelector:
kubernetes.io/os: linux
newrelic-logging:
enabled: true
enableWindows: true
nri-metadata-injection:
enabled: true
nodeSelector:
kubernetes.io/os: linux
newrelic-prometheus-agent:
enabled: true
verboseLog: true
config:
kubernetes:
integrations_filter:
enabled: false
nodeSelector:
kubernetes.io/os: linux

다음은 명심해야 할 몇 가지 중요한 사항입니다.

  • 이 파일에 표시되지 않은 다른 하위 차트가 nri-bundle 에 존재할 수 있습니다. 해당 하위 차트를 추가하려면 해당 키 또는 값 쌍을 yaml 파일에 추가하세요.
  • newrelic/nri-bundle 차트에는 Linux 기반 노드에 대한 최신 업데이트가 포함되어 있습니다.
  • 이 단계 중에 newrelic-logging 차트를 구성하여 Linux 및 Windows 노드 모두에 설치할 수도 있습니다.
  • Windows에 대한 예약을 방지하려면 NodeSelector 를 구성해야 합니다. 안내 설치의 기본값을 사용하는 혼합 클러스터에서 설치가 실패하는 경우 nodeSelector 값을 추가하세요.

설치 newrelic-bundle

다음 명령어를 실행하여 newrelic-bundle 을 설치합니다.

bash
$
helm upgrade --install newrelic-bundle newrelic/nri-bundle --namespace newrelic -f values-newrelic.yaml

각 Windows 노드의 로깅 패드를 포함하여 모든 패드는 Helm이 시작될 때 시작되어야 합니다.

Windows 노드에 대해 newrelic-infrastructure 정의

두 번째 yaml 파일을 만들어 newrelic-infrastructure v2 차트의 값을 추가합니다. 이는 1단계에서 생성한 파일과 별도의 yaml 파일입니다. 다음은 windows-values.yaml 라는 이름을 지정할 수 있는 newrelic-infrastructure 에 대한 예제 yaml 파일입니다.

global:
licenseKey: mykey
cluster: mycluster
enableLinux: false
enableWindows: true
windowsOsList:
- version: 2022
imageTag: 2-windows-ltsc2022-alpha
buildNumber: 10.0.20348
windowsNodeSelector:
kubernetes.io/os: windows

이 예에서는 Windows 2022 노드 그룹 또는 노드 풀에 대한 값을 추가합니다.

다른 Windows 노드 그룹 또는 노드 풀 버전을 실행하는 경우 windowsOsList 섹션을 적절한 값으로 조정하세요. Windows 설치 섹션에서 이러한 값을 볼 수 있습니다.

newrelic-infrastructure 차트 설치

이 명령어를 실행하여 newrelic-infrastructure 차트의 v2.7.2 버전을 설치합니다.

bash
$
helm upgrade --install newrelic-windows newrelic/newrelic-infrastructure --namespace newrelic --version 2.7.2 -f windows-values.yaml

Helm이 반환되면 각 Windows 노드에 newrelic-windows-newrelic-infrastructure 패드가 표시되어야 합니다.

다음은 뭐지?

Kubernetes 데이터 탐색에 대해 자세히 알아보려면 다음 문서를 확인하세요.

Learn about Kubernetes cluster

Query your Kubernetes data

Set alerts on Kubernetes

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.