문제
뉴렐릭의 Kubernetes 통합에 대한 설치 절차를 Kubernetes 완료했습니다. 뉴렐릭 계정에 데이터가 표시되지만 컨트롤 플레인 구성 요소의 데이터가 없습니다.
제어 영역 데이터가 누락된 경우(예: K8sSchedulerSample
) 가장 먼저 해야 할 일은 제어 영역 구성요소의 자세한 로그를 확인하는 것입니다.자세한 로깅을 활성화 하는 방법 읽기
가능성은 자동 검색이 클러스터에서 가장 일반적인 레이블을 활용하는 컨트롤 플레인 포드를 찾으려고 시도할 수 있습니다. 단일 구성 요소에 대해 포드가 발견되지 않는 경우 더 많은 데이터가 누락되는 것을 방지하는 데 실패하지 않습니다.이 시나리오에서는 다음과 유사한 로그를 볼 수 있습니다.
time="2022-06-21T12:21:25Z" level=debug msg="Autodiscovering pods for \"scheduler\""time="2022-06-21T12:21:25Z" level=debug msg="0 pods found with labels \"tier=control-plane,component=kube-scheduler\""time="2022-06-21T12:21:25Z" level=debug msg="No pod found for \"scheduler\" with labels \"tier=control-plane,component=kube-scheduler\""time="2022-06-21T12:21:25Z" level=debug msg="0 pods found with labels \"k8s-app=kube-scheduler\""time="2022-06-21T12:21:25Z" level=debug msg="No pod found for \"scheduler\" with labels \"k8s-app=kube-scheduler\""time="2022-06-21T12:21:25Z" level=debug msg="0 pods found with labels \"app=openshift-kube-scheduler,scheduler=true\""time="2022-06-21T12:21:25Z" level=debug msg="No pod found for \"scheduler\" with labels \"app=openshift-kube-scheduler,scheduler=true\""time="2022-06-21T12:21:25Z" level=debug msg="No \"scheduler\" pod has been discovered"이 경우 Helm 차트 값 의
controlplane.config.[component].autodiscover[].selector
구성을 사용하여 검색 동작을 변경할 수 있습니다. 제어 영역 구성 요소 에 대해 자세히 알아보세요.제어 평면 구성 요소를 찾았지만 끝점에 대한 인증이 실패할 수도 있습니다.이 시나리오에서는 다음과 유사한 로그를 볼 수 있습니다.
time="2022-06-21T15:54:52Z" level=debug msg="Endpoint \"https://localhost:10257\" probe failed, skipping: http request failed with status: 403 Forbidden"이 경우 helm 차트 값 의
controlplane.config.[component].autodiscover[].endpoints[].auth
구성을 사용하여 각 엔드포인트에 대한 인증 동작을 변경할 수 있습니다.통합의 컨트롤플레인 구성 요소가 모든 마스터 노드에서 실행되고 있지 않을 수도 있습니다.
다음이 실행 중인지 다시 확인할 수 있습니다.
kubectl get pod -n <NEWRELIC_NAMESPACE> -l app.kubernetes.io/component=controlplane -o wideNewrelic 모니터링 인스턴스가 없는 노드에서 실행 중인 모니터링하려는 컨트롤플레인 포드가 있는 경우 필요에 따라 helm 차트 값 의
controlplane.affinity
,controlplane.nodeSelector
및controlplane.tolerations
를 변경할 수 있습니다.
컨트롤 플레인 구성 요소가 CrashLoopBackOff에 입력되는 컨트롤 플레인 포드를 자동으로 검색하거나 긁지 않는 경우.
이전 섹션에서 설명한 대로 필요에 맞게 자동 검색 및 인증 방법의 동작을 변경할 수 있습니다.
반면에 해당 데이터에 관심이 없으면 helm 차트 값 에서 controlplane.enabled=false
을 설정하여 제어 평면 구성 요소를 비활성화할 수 있습니다.