12.3. 查看 Operator 日志
以下流程是如何查看 automation-controller-operator
pod 的日志的示例。
流程
要查找 pod 名称,请运行:
oc get pods | grep operator
oc get pods | grep operator
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 要查看 pod 的日志,请运行:
oc logs <operator-pod-name> -f
oc logs <operator-pod-name> -f
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 或者,要在不首先获取 pod 名称的情况下查看日志,请运行:
oc logs deployments/automation-controller-operator-controller-manager -c automation-controller-manager -f
oc logs deployments/automation-controller-operator-controller-manager -c automation-controller-manager -f
Copy to Clipboard Copied! Toggle word wrap Toggle overflow