OpenFunction icon indicating copy to clipboard operation
OpenFunction copied to clipboard

can't work when do step as provide by openfunction.

Open LinboLen opened this issue 3 years ago • 11 comments

Description A clear and concise description of what the bug is.

Environmental Tell us what your cluster environment is like, e.g.

  • Operating System Information
  • kubernetes version
  • OpenFunction version
  • Versions of dependent components (e.g. dapr, keda, shipwright, knative)

Expected behavior Tell us what should happen.

in kubectl run curl --image=radial/busyboxplus:curl -i --tty bash. can visit openfunction

Actual behavior Tell us what happens instead. Provide a log message if relevant.

curl http://openfunction.io.svc.cluster.local/default/function-sample/World

404 Not Found

404 Not Found


nginx

To Reproduce Steps to reproduce the behavior:

  1. install openfunction in kubesphere
  2. do step by https://openfunction.dev/docs/getting-started/your-first-function/function-go/#access-the-function
  3. See error

Screenshots If applicable, add screenshots to help explain your problem.

kubectl get ksvc
NAME                       URL                                                   LATESTCREATED                   LATESTREADY                     READY     REASON
serving-nkxnn-ksvc-pcsg7   http://serving-nkxnn-ksvc-pcsg7.default.example.com   serving-nkxnn-ksvc-pcsg7-v100   serving-nkxnn-ksvc-pcsg7-v100   Unknown   IngressNotConfigured

Additional context Add any other context about the problem here.

LinboLen avatar Jun 09 '22 07:06 LinboLen

@LinPoLen Can you please paste the configuration of the Function and the result of the command kubectl get function

tpiperatgod avatar Jun 09 '22 13:06 tpiperatgod

kubectl get function

[root@master1 ~]# kubectl get function
NAME          BUILDSTATE   SERVINGSTATE   BUILDER         SERVING         URL   AGE
node-sample   Succeeded    Starting       builder-xl2mf   serving-nkxnn         36h

LinboLen avatar Jun 10 '22 03:06 LinboLen

Hi, @LinPoLen it looks like you don't have the Function Domain installed yet, you can install it by running the ofn install --ingress nginx command.

Here's an alternative way to access the function, pls see this.

tpiperatgod avatar Jun 10 '22 04:06 tpiperatgod

when I do kubectl -n kourier-system get svc it response no resources

[root@master1 ~]# kubectl -n kourier-system get svc
No resources found in kourier-system namespace.

LinboLen avatar Jun 10 '22 05:06 LinboLen

It is likely that there is a problem with the installation of the knative (and the kourier) component. Can you show me how you install the openfunction?

tpiperatgod avatar Jun 10 '22 05:06 tpiperatgod

simply install by ofn install --all

LinboLen avatar Jun 10 '22 07:06 LinboLen

I suggest you check the running status of the Knative (and Kourier), such as the service status, the logs of the workload, the contents of the configmap, etc. Feel free to provide any information that confuses you. 🙂

tpiperatgod avatar Jun 10 '22 13:06 tpiperatgod

you can uninstall and then try ofn install --all --region-cn

benjaminhuo avatar Jun 10 '22 14:06 benjaminhuo

thank for you remind that it can provide option of cn mirror. actually I have global proxy to access necessity resources. I still can try to resintall use region-cn.

LinboLen avatar Jun 19 '22 06:06 LinboLen

@LinPoLen , @wrongerror can tell you how to install openfunction using helm

benjaminhuo avatar Jun 22 '22 08:06 benjaminhuo

Hi, @LinPoLen. You can try to install openfunction using helm by using this document: https://github.com/OpenFunction/charts/blob/main/README.md. tested on helm version 3.6.3+

wrongerror avatar Jun 22 '22 08:06 wrongerror