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
302 stars 232 forks source link

Error with Installation #748

Closed g83wang closed 2 years ago

g83wang commented 2 years ago

Hi,

Thank you for looking into this issue.

I use the helm chart to deploy openwhisk on a local kind cluster (as instructed here: https://github.com/apache/openwhisk-deploy-kube/blob/master/README.md#initial-setup). All pods are up but get an error with the owdev-install-packages-27snr. image I have already labelled some kind workers as invokers. Here is the log for owdev-install-packages-27snr: image Here is my configuration file (mycluster.yaml): image Here is the kind-cluster.yaml: image

Could I get some idea on this issue and how to fix it? Thank you.

obrr-hhx commented 2 years ago

I also have met this problem, I guess this is about the GFW, so i fix it through changing the file myTask.sh in the directory helm/openwhisk/configMapFiles/installPackages/myTask.sh by setting the npm proxy.

I add the two following command in this file npm config set proxy http://<your proxy ip>:<proxy port> npm config set registry "http://registry.npmjs.org/"

and I use the following command to deploy the openwhisk helm install owdev ./helm/openwhisk -n openwhisk --create-namespace -f ./deploy/kind/mycluster.yaml

If you want to do some operations in the install-packages pod, I suggest you use command like kubectl exec --stdin --namespace=openwhisk --tty owdev-install-packages-27snr -- /bin/bash