我有通过头盔安装在本地(minikube)运行OpenWhisk:
helm install openwhisk-deploy-kube/helm/openwhisk \
-n openwhisk \
--namespace openwhisk \
--set whisk.ingress.apiHostName="$(minikube ip)"
[当尝试使用指向CLOUDANT_HOST
的环境minikube ip
绑定cloudant(CouchDB)时:
wsk package bind /whisk.system/cloudant contactdb \
-p username $(CLOUDANT_USER) \
-p password $(CLOUDANT_PASS) \
-p host $(CLOUDANT_HOST) \
-p dbname contactdb
并向contactdb/write
发送动作调用:
wsk action invoke contactdb/write \
-b \
-p dbname contactdb \
-p doc '{"name":"Bruno Wego","email":"[email protected]"}' \
-r \
-i
返回以下问题:
{
"error": {
"code": "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
"description": "unable to verify the first certificate",
"errid": "request",
"message": "error happened in your connection",
"name": "Error",
"scope": "socket",
"stack": "Error: unable to verify the first certificate\n at Error (native)\n at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)\n at emitNone (events.js:86:13)\n at TLSSocket.emit (events.js:185:7)\n at TLSSocket._finishInit (_tls_wrap.js:609:8)\n at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:439:38)",
"stacktrace": [
"Error: unable to verify the first certificate",
" at Error (native)",
" at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)",
" at emitNone (events.js:86:13)",
" at TLSSocket.emit (events.js:185:7)",
" at TLSSocket._finishInit (_tls_wrap.js:609:8)",
" at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:439:38)"
]
}
}
我不知道在OpenWhisk的本地安装中指向host
的地址是什么。>>
我通过头盔安装通过OpenWhisk运行本地(minikube):头盔安装openwhisk-deploy-kube / helm / openwhisk \ -n openwhisk \ --namespace openwhisk \ --set whisk.ingress.apiHostName =“ $(...
[取一个look here之后,我使用了没有ssl的url参数,它起作用了: