3.9. 디버깅 데이터 수집
지원 사례를 여는 경우 클러스터에 대한 디버깅 정보를 Red Hat 지원에 제공하면 도움이 됩니다.
문제 해결에 도움이 되도록 다음 정보를 제공해 주세요.
-
Must-Gather
도구를 사용하여 수집된 데이터입니다. - 고유한 클러스터 ID입니다.
Must-gather
도구를 사용하면 다음 항목을 포함하여 Custom Metrics Autoscaler Operator와 해당 구성 요소에 대한 데이터를 수집할 수 있습니다.
-
openshift-keda
네임스페이스와 그 자식 객체. - 사용자 정의 메트릭 자동 확장 연산자 설치 개체입니다.
- 사용자 정의 메트릭 자동 확장 연산자 CRD 개체입니다.
3.9.1. 디버깅 데이터 수집 링크 복사링크가 클립보드에 복사되었습니다!
다음 명령은 Custom Metrics Autoscaler Operator에 대한 must-gather
도구를 실행합니다.
oc adm must-gather --image="$(oc get packagemanifests openshift-custom-metrics-autoscaler-operator \ -n openshift-marketplace \ -o jsonpath='{.status.channels[?(@.name=="stable")].currentCSVDesc.annotations.containerImage}')"
$ oc adm must-gather --image="$(oc get packagemanifests openshift-custom-metrics-autoscaler-operator \
-n openshift-marketplace \
-o jsonpath='{.status.channels[?(@.name=="stable")].currentCSVDesc.annotations.containerImage}')"
표준 OpenShift Container Platform의 must-gather
명령인 oc adm must-gather 는
Custom Metrics Autoscaler Operator 데이터를 수집하지 않습니다.
사전 요구 사항
-
클러스터 관리자
역할이 있는 사용자로 OpenShift Container Platform에 로그인했습니다. -
OpenShift Container Platform CLI(
oc
)가 설치되어 있어야 합니다.
절차
must-gather
데이터를 저장하려는 디렉터리로 이동합니다.참고클러스터에서 제한된 네트워크를 사용하는 경우 추가 단계를 수행해야 합니다. 미러 레지스트리에 신뢰할 수 있는 CA가 있는 경우 먼저 신뢰할 수 있는 CA를 클러스터에 추가해야 합니다. 제한된 네트워크의 모든 클러스터에 대해 다음 명령을 실행하여 기본
필수 수집
이미지를 이미지 스트림으로 가져와야 합니다.oc import-image is/must-gather -n openshift
$ oc import-image is/must-gather -n openshift
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 다음 중 하나를 수행하세요.
Custom Metrics Autoscaler Operator가 반드시
수집해야 하는
데이터만 가져오려면 다음 명령을 사용하세요.oc adm must-gather --image="$(oc get packagemanifests openshift-custom-metrics-autoscaler-operator \ -n openshift-marketplace \ -o jsonpath='{.status.channels[?(@.name=="stable")].currentCSVDesc.annotations.containerImage}')"
$ oc adm must-gather --image="$(oc get packagemanifests openshift-custom-metrics-autoscaler-operator \ -n openshift-marketplace \ -o jsonpath='{.status.channels[?(@.name=="stable")].currentCSVDesc.annotations.containerImage}')"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow must-gather
명령에 대한 사용자 지정 이미지는 Operator 패키지 매니페스트에서 직접 가져오므로 Custom Metric Autoscaler Operator를 사용할 수 있는 모든 클러스터에서 작동합니다.사용자 지정 메트릭 자동 확장기 연산자 정보 외에 기본
필수 수집
데이터를 수집하려면 다음을 수행합니다.다음 명령을 사용하여 Custom Metrics Autoscaler Operator 이미지를 얻고 이를 환경 변수로 설정합니다.
IMAGE="$(oc get packagemanifests openshift-custom-metrics-autoscaler-operator \ -n openshift-marketplace \ -o jsonpath='{.status.channels[?(@.name=="stable")].currentCSVDesc.annotations.containerImage}')"
$ IMAGE="$(oc get packagemanifests openshift-custom-metrics-autoscaler-operator \ -n openshift-marketplace \ -o jsonpath='{.status.channels[?(@.name=="stable")].currentCSVDesc.annotations.containerImage}')"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Custom Metrics Autoscaler Operator 이미지와 함께
oc adm must-gather를
사용하세요.oc adm must-gather --image-stream=openshift/must-gather --image=${IMAGE}
$ oc adm must-gather --image-stream=openshift/must-gather --image=${IMAGE}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
예 3.1. 사용자 정의 메트릭 자동 확장기에 대한 필수 수집 출력 예시
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 작업 디렉터리에 생성된
must-gather
디렉터리의 압축 파일을 생성합니다. 예를 들어 Linux 운영 체제를 사용하는 컴퓨터에서 다음 명령을 실행합니다.tar cvaf must-gather.tar.gz must-gather.local.5421342344627712289/
$ tar cvaf must-gather.tar.gz must-gather.local.5421342344627712289/
1 Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
must-gather-local.5421342344627712289/
를 실제 디렉터리 이름으로 바꿉니다.
- Red Hat Customer Portal에서 해당 지원 사례에 압축 파일을 첨부합니다.