在Mac OS上设置Fabric8时遇到问题

时间:2017-01-20 20:03:10

标签: macos openshift kubernetes fabric8

我试图按照这里的入门说明进行操作:

http://fabric8.io/guide/getStarted/gofabric8.html

我最初遇到了一个问题,它无法下载并运行oc和minishift但是在这个问题的帮助下解决了这个问题:

gofabric8> Unable to unzip /Users/apple/.fabric8/bin/oc.zip zip: not a valid zip

现在我遇到了设置安全问题并且只是悬挂的问题:

DeploymentConfigs all started so we can deploy fabric8


Deploying fabric8 to your OpenShift installation at https://192.168.64.2:8443 for domain 192.168.64.2.xip.io in namespace default

Loading fabric8 releases from maven repository:https://repo1.maven.org/maven2/
Creating new Project: default
Deploying package: platform version: 2.4.19

SecurityContextConstraints restricted.........................................✘ User "admin" cannot create securitycontextconstraints at the cluster scope
Cannot create SecurityContextConstraints: User "admin" cannot create securitycontextconstraints at the cluster scope
Failed to create SecurityContextConstraints {{ } {fabric8      0 {0001-01-01 00:00:00 +0000 UTC} <nil> <nil> map[] map[] [] []} 0xc420604360 true [] [] [] [*] true true false false {RunAsAny <nil>} {RunAsAny <nil> <nil> <nil>} { []} { []} false [] [system:serviceaccount:openshift-infra:build-controller system:serviceaccount:default:default system:serviceaccount:default:fabric8 system:serviceaccount:default:gerrit system:serviceaccount:default:jenkins system:serviceaccount:default:router system:serviceaccount:default:registry system:serviceaccount:default:gogs system:serviceaccount:default:fluentd] [system:cluster-admins system:nodes]} in namespace default: User "admin" cannot create securitycontextconstraints at the cluster scope
SecurityContextConstraints fabric8............................................✘ User "admin" cannot create securitycontextconstraints at the cluster scope
Cannot create SecurityContextConstraints: User "admin" cannot create securitycontextconstraints at the cluster scope
Failed to create SecurityContextConstraints {{ } {fabric8-sa-group      0 {0001-01-01 00:00:00 +0000 UTC} <nil> <nil> map[] map[] [] []} <nil> false [] [] [] [gitRepo configMap secret emptyDir] false false false false {RunAsAny <nil>} {RunAsAny <nil> <nil> <nil>} { []} { []} false [] [] [system:serviceaccounts]} in namespace default: User "admin" cannot create securitycontextconstraints at the cluster scope
SecurityContextConstraints fabric8-sa-group...................................✘ User "admin" cannot create securitycontextconstraints at the cluster scope
addClusterRoleToUser cluster-admin system:serviceaccount:default:fabric8......✘ User "admin" cannot get clusterpolicybindings at the cluster scope
addClusterRoleToUser cluster-admin system:serviceaccount:default:jenkins......✘ User "admin" cannot get clusterpolicybindings at the cluster scope
addClusterRoleToUser cluster-admin system:serviceaccount:default:configmapcontroller✘ User "admin" cannot get clusterpolicybindings at the cluster scope
addClusterRoleToUser cluster-admin system:serviceaccount:default:exposecontroller✘ User "admin" cannot get clusterpolicybindings at the cluster scope
addClusterRoleToUser cluster-reader system:serviceaccount:default:metrics.....✘ User "admin" cannot get clusterpolicybindings at the cluster scope
addClusterRoleToUser cluster-reader system:serviceaccount:default:fluentd.....✘ User "admin" cannot get clusterpolicybindings at the cluster scope
addClusterRoleToGroup cluster-reader system:serviceaccounts...................✘ User "admin" cannot get clusterpolicybindings at the cluster scope
addServiceAccount fluentd.....................................................✘ User "admin" cannot create serviceaccounts in project "default"
addServiceAccount registry....................................................✘ User "admin" cannot create serviceaccounts in project "default"
addServiceAccount router......................................................✘ User "admin" cannot create serviceaccounts in project "default"

任何帮助表示赞赏

1 个答案:

答案 0 :(得分:0)

用户名“admin”似乎已更改为“system:admin”。我完全手动运行安装:

minishift start
oc login -u system:admin
oc project default
gofabric8 deploy -y