究竟我如何收到此错误消息:
➜ ~ oc adm policy add-cluster-role-to-user cluster-admin -z tiller --namespace tiller
Error from server (NotFound): the server could not find the requested resource
所以:
➜ ~ oc project
Using project "tiller" on server "https://192.168.99.100:8443".
➜ ~ oc get sa
NAME SECRETS AGE
builder 2 35m
default 2 35m
deployer 2 35m
tiller 2 30m
我不太清楚为什么找不到tiller
服务帐户。
编辑
➜ ~ oc version
oc v1.5.1+7b451fc
kubernetes v1.5.2+43a9be4
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://master.si-origin-cluster.t-systems.es:8443
openshift v3.9.0+ba7faec-1
kubernetes v1.9.1+a0ce1bc657
答案 0 :(得分:0)
oc version
的输出是什么?您的客户端可能与服务器不兼容。