apache / openwhisk-deploy-kube

The Apache OpenWhisk Kubernetes Deployment repository supports deploying the Apache OpenWhisk system on Kubernetes and OpenShift clusters.
https://openwhisk.apache.org/
Apache License 2.0
296 stars 228 forks source link

Failed to deploy openwhisk on macOS #738

Closed LijieZhang1998 closed 1 year ago

LijieZhang1998 commented 1 year ago

Hi, I'm using Simple Docker-based options to deploy openwhisk locally on macOS. My Docker-desktop version is 4.1.0 with k8 version 1.21.5. I got connection refused errors when installing packages as below. I also tried the latest docker-desktop version with k8 1.24.1. I still got the same errors. Can anybody give me a hand on it? Thanks.

Installing apimgmt package
error: Package update failed: Put https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true: dial tcp 127.0.0.1:31001: getsockopt: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false: dial tcp 127.0.0.1:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false: dial tcp 127.0.0.1:31001: getsockopt: connection refused
Run 'wsk --help' for usage.

Here is my mycluster.yaml file. I didn't make any change from readme file.


whisk:
  ingress:
    type: NodePort
    apiHostName: localhost
    apiHostPort: 31001
    useInternally: false

nginx:
  httpsNodePort: 31001

# A single node cluster; so disable affinity
affinity:
  enabled: false
toleration:
  enabled: false
invoker:
  options: "-Dwhisk.kubernetes.user-pod-node-affinity.enabled=false"
LijieZhang1998 commented 1 year ago

I figured out the issue. Helm charts may include wrong configuration. This deployment link is not working. But Deploying from Git(https://github.com/apache/openwhisk-deploy-kube/blob/master/README.md#deploying-from-git) is working.