找不到或使用OpenShift系统组

时间:2019-05-03 10:30:00

标签: openshift openshift-origin okd

我试图在OpenShift中配置一些角色绑定,我认为这将需要使用某些OpenShift系统组。但是,当我尝试将角色添加到任何系统组中时,都找不到它们。

我要配置的一个特定示例是角色绑定,该角色绑定允许将图像从我的“ demos”项目中拉到另一个项目(包括新创建的项目)中。 我对此的研究使我进入了文档中的此特定页面,该页面描述了一个听起来很符合我的需求的“ system:serviceaccount”组。 https://docs.okd.io/3.11/dev_guide/service_accounts.html#dev-sa-user-names-and-groups

基于此页面上提供的一些示例,我目前正在尝试使用以下命令来授予这些权限。

oc policy add-role-to-group system:image-puller system:serviceaccount -n demos

我希望这将使我能够提取存储在“ demos”项目中的图像之一,并将其​​部署到另一个项目中。但是该命令返回以下内容。

Warning: Group 'system:serviceaccount' not found
role "system:image-puller" added: "system:serviceaccount"

该角色似乎仍被添加到“ demos”项目的组中,但是我仍然无法将其中存储的图像拖到另一个项目中。

0 个答案:

没有答案