Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LinboLen opened this issue Jun 9, 2022 · 11 comments
Open

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

LinboLen opened this issue Jun 9, 2022 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@LinboLen
Copy link

LinboLen commented Jun 9, 2022

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

<title>404 Not Found</title>

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 LinboLen added the bug Something isn't working label Jun 9, 2022
@tpiperatgod
Copy link
Member

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

@LinboLen
Copy link
Author

kubectl get function

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

@tpiperatgod
Copy link
Member

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.

@LinboLen
Copy link
Author

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.

@tpiperatgod
Copy link
Member

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?

@LinboLen
Copy link
Author

simply install by ofn install --all

@tpiperatgod
Copy link
Member

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. 🙂

@benjaminhuo
Copy link
Member

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

@LinboLen
Copy link
Author

LinboLen commented Jun 19, 2022

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.

@benjaminhuo
Copy link
Member

benjaminhuo commented Jun 22, 2022

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

@wrongerror
Copy link
Member

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+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants