11.5. oc adm inspect를 사용하여 debug GitOps
Argo CD for MicroShift Red Hat OpenShift GitOps 컨트롤러에 문제가 있는 경우 OpenShift CLI(oc) 툴을 사용하여 오류가 있는지 확인할 수 있습니다.
사전 요구 사항
-
oc명령줄 툴이 설치되어 있습니다.
절차
GitOps 네임스페이스에서
oc adm inspect명령을 실행합니다.$ oc adm inspect ns/openshift-gitops출력 예
Gathering data for ns/openshift-gitops... W0501 20:34:35.978508 57625 util.go:118] the server doesn't have a resource type egressfirewalls, skipping the inspection W0501 20:34:35.980881 57625 util.go:118] the server doesn't have a resource type egressqoses, skipping the inspection W0501 20:34:36.040664 57625 util.go:118] the server doesn't have a resource type servicemonitors, skipping the inspection Wrote inspect data to inspect.local.2673575938140296280.
다음 단계
-
oc adm inspect에 필요한 정보가 표시되지 않은 경우 sos 보고서를 실행할 수 있습니다.