failed to create job: jobs.batch "hello-job" is forbidden: cannot set blockOwnerDeletion
1. 背景
工作遇到的类似问题,参考官网进行收集归档,进行笔记形式的记录,便于后续查看。
2. 环境
OpenShift Container Platform (OCP) 4.3.10
3. 问题
“oc create job --from=cronjob/hello hello-job” fails with “error: failed to create job: jobs.batch “hello-job” is forbidden: cannot set blockOwnerDeletion…”
4. 参考解决方案
这是上游的 kubectl 错误。 将该问题跟踪为
github.com/kubernetes/…, the PR with the fix is at\