Openshift:添加用户授权

时间:2018-08-02 07:05:58

标签: openshift

当我尝试使用掌舵安装图表时收到此错误消息:

➜  ~ helm install incubator/vault --set vault.dev=false
  

用户“ system:serviceaccount:tiller:tiller”无法在名称空间“ helm”中获取名称空间

错误消息很清楚。

如何获得服务帐户system:serviceaccount:tiller:tiller有权访问helm项目?

我尝试过:

➜  ~ oc adm policy add-role-to-user edit "system:serviceaccount:tiller:tiller"             
Error from server (NotFound): the server could not find the requested resource

➜  ~ oc project tiller
Now using project "tiller" on server "https://192.168.99.100:8443".

➜  ~ oc get sa
NAME       SECRETS   AGE
builder    2         23m
default    2         23m
deployer   2         23m
tiller     2         17m

其他信息:

➜  ~ oc get roles
NAME
tiller

➜  ~ oc describe role tiller
Name:               tiller
Namespace:          tiller
Created:            18 minutes ago
Labels:             <none>
Annotations:            <none>
Verbs               Non-Resource URLs   Extension   Resource Names  API Groups  Resources
[create delete get list update] []                  []      []      [configmaps]
[get]               []                  []      []      [namespaces]

有什么想法吗?

0 个答案:

没有答案