我安装了openwhisk on a Kubernetes cluster。集群由主节点和工作节点组成。但是,当我尝试创建 wsk列表时,我在openwhisk中遇到以下错误:
[-go / whisk.addRouteOptions]:051:[Inf]添加选项&{Limit:0跳过:0 Docs:false}来路由“操作”
[-go / whisk.addRouteOptions]:076:[Inf]从输入结构&{Limit:0 Skip:0 Docs:false}
返回路线选项'actions?limit = 0&skip = 0'[isk。(* ActionService).List]:186:[Err]带有选项的动作列表路线:动作 [k。(* Client).NewRequestUrl]:718:[Inf]基本路径:https://192.168.99.100:31001/api,版本/名称空间路径:v1 /名称空间/ openwhisk,资源路径:actions?limit = 0&skip = 0
[k。(* Client).addAuthHeader]:311:[Inf]添加基本身份验证标头;使用authkey 请求:
[GET] https://192.168.99.100:31001/api/v1/namespaces/openwhisk/actions?limit=0&skip=0 要求标题 { “授权”:[ “基本> MjNiYzQ2YjEtNz” ], “用户代理”: [ “ CloudFunctions-CLI / 1.0(2018-11-09T06:11:12 + 00:00)linux amd64” ] }
[ent / go / whisk。(* Client).Do]:365:[Err] HTTP Do()[req https://192.168.99.100:31001/api/v1/namespaces/openwhisk/actions?limit=0&skip=0]错误:获取https://192.168.99.100:31001/api/v1/namespaces/openwhisk/actions?limit=0&skip=0:被禁止
[isk。(* ActionService).List]:200:[Err] s.client.Do()错误-HTTP req https://192.168.99.100:31001/api/v1/namespaces/openwhisk/actions?limit=0&skip=0;错误“获取https://192.168.99.100:31001/api/v1/namespaces/openwhisk/actions?limit=0&skip=0:禁止”
[/ commands.entityListError]:038:[Err] Client.Actions.List(openwhisk)错误:获取https://192.168.99.100:31001/api/v1/namespaces/openwhisk/actions?limit=0&skip=0:禁止
[main.main]:068:[Inf] err对象类型:* whisk.WskError
[main.main]:072:[Err]有一个* whisk.WskError错误:&whisk.WskError {RootErr:(* errors.errorString)(0xc420274750),ExitCode:3,DisplayMsg:true,MsgDisplayed:false, DisplayUsage:false,DisplayPrefix:true,ApplicationError:false,TimedOut:false} 错误:无法获取名称空间'openwhisk'的实体列表:获取https://192.168.99.100:31001/api/v1/namespaces/openwhisk/actions?limit=0&skip=0:禁止
这是我的 .wskprops 文件
APIHOST=192.168.99.100:31001
KEY=/home/ubuntu/openwhisk/incubator-openwhisk-deploy-kube/ca.key.pem
CERT=/home/ubuntu/openwhisk/incubator-openwhisk-deploy-kube/ca.cert.pem
AUTH=23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP
#AUTH=789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP
NAMESPACE=guest
设置中是否缺少某些内容?