can't work when do step as provide by openfunction.
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
To Reproduce Steps to reproduce the behavior:
- install openfunction in kubesphere
- do step by https://openfunction.dev/docs/getting-started/your-first-function/function-go/#access-the-function
- 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.
@LinPoLen Can you please paste the configuration of the Function and the result of the command kubectl get function
kubectl get function
[root@master1 ~]# kubectl get function
NAME BUILDSTATE SERVINGSTATE BUILDER SERVING URL AGE
node-sample Succeeded Starting builder-xl2mf serving-nkxnn 36h
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.
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.
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?
simply install by ofn install --all
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. 🙂
you can uninstall and then try ofn install --all --region-cn
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.
@LinPoLen , @wrongerror can tell you how to install openfunction using helm
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+