-1

I installed openwhisk by following this tutorial (running the start-kind.sh). no errors returned so it looks like a successful installation(tho i dont know what that script did, did it deploy a service or a deployment or ..?).

Now i want to deploy some functions so i think this has to do with the wsk cli. so i followed this tutorial. when i reached the step of configuring wsk to set the property by running this command:

wsk property set --apihost API_HOST --auth AUTH_KEY --namespace guest

it returned the following error: unknown flag: --namespace so i removed that argument and run by specefying API_HOST and AUTH_KEY like this:

wsk property set --apihost localhost:31001 --auth test

I just assumed that somehow openwhisk is running on 31001 via some service, (and provided a random AUTH_KEY test) however the only service there is when i run kc get services is this:

kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 148m

And then when i try to verify the host connection with wsk list -v, it returns the following error:

REQUEST:
[GET]   https://localhost:31001/api/v1/namespaces/_/actions?limit=0&skip=0
Req Headers
{
  "Authorization": [
    "Basic dGVzdA=="
  ],
  "User-Agent": [
    "OpenWhisk-CLI/1.0 (2021-04-01T23:49:54.523+0000) linux amd64"
  ]
}
error: Unable to obtain the list of entities for namespace 'default': Get "https://localhost:31001/api/v1/namespaces/_/actions?limit=0&skip=0": read tcp 127.0.0.1:49644->127.0.0.1:31001: read: connection reset by peer
ezio
  • 359
  • 2
  • 13

0 Answers0