使用本节中的信息对使用 operator 部署 Red Hat build of Kogito 微服务时可能会遇到的问题进行故障排除。以下信息会在新问题中更新,并发现临时解决方案。
没有构建正在运行
如果您没有看到运行任何构建以及相关命名空间中创建的任何资源,请输入以下命令来检索运行的 pod,并查看 pod 的 operator 日志:
查看指定 pod 的 RHPAM Kogito Operator 日志
// Retrieves running pods
$ oc get pods
NAME READY STATUS RESTARTS AGE
kogito-operator-6d7b6d4466-9ng8t 1/1 Running 0 26m
// Opens RHPAM Kogito Operator log for the pod
$ oc logs -f kogito-operator-6d7b6d4466-9ng8t
// Retrieves running pods
$ oc get pods
NAME READY STATUS RESTARTS AGE
kogito-operator-6d7b6d4466-9ng8t 1/1 Running 0 26m
// Opens RHPAM Kogito Operator log for the pod
$ oc logs -f kogito-operator-6d7b6d4466-9ng8t
Copy to ClipboardCopied!Toggle word wrapToggle overflow
apiVersion: rhpam.kiegroup.org/v1 # Red Hat build of Kogito API for this microservice
kind: KogitoRuntime # Application type
metadata:
name: example # Application name
spec:
image: 'not-existing-image:latest'
replicas: 1
apiVersion: rhpam.kiegroup.org/v1 # Red Hat build of Kogito API for this microservicekind: KogitoRuntime # Application typemetadata:name: example # Application namespec:image:'not-existing-image:latest'replicas:1
Copy to ClipboardCopied!Toggle word wrapToggle overflow