使用playbook,我是Ansible,openshift-origin,我是由以下3个节点构建的:
构建完成后,docker-registry中的状态为Pending,因此docker-registry被以下命令删除:
oc delete dc/docker-registry
oc delete svc/docker-registry
oc delete pod docker-registry-5-deploy
完成后,删除docker-registry会在以下命令中新建docker注册表。
oadm registry
结果:
Creating registry registry ...
error: serviceaccounts "registry" already exists
error: rolebinding "registry-registry-role" already exists
deploymentconfig "docker-registry" created
service "docker-registry" created
Failed
此错误理解了serviceaccounts的消除方法。 但是一种消除角色绑定"注册表 - 注册表 - 角色的方法"不明白。
应如何操作?
答案 0 :(得分:0)
您可以使用此Openshift命令删除clusterrolebinding registry-registry-role:
oc delete clusterrolebindings registry-registry-role