11.5. oc adm inspect を使用して GitOps をデバッグする
MicroShift Red Hat OpenShift GitOps コントローラー用の Argo CD に問題がある場合は、OpenShift CLI (oc) ツールを使用してエラーを検査できます。
前提条件
-
ocコマンドラインツールがインストールされている。
手順
GitOps namespace にいるときに
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 report を実行できます。