-
Notifications
You must be signed in to change notification settings - Fork 49
Add WasmEdge sample #107
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
Add WasmEdge sample #107
Conversation
| containers: | ||
| - command: | ||
| - /wasmedge_hyper_server.wasm | ||
| imagePullPolicy: Always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non latest image should use IfNotPresent instead of Always
|
|
||
| ## Deployment | ||
|
|
||
| 1. Create secret |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wrongerror you can follow https://openfunction.dev/docs/concepts/serverless_apps/ to revise the guide, no need to add redundant contents to this and we need a wasmedge guide in openfunction.dev as well
| @@ -0,0 +1,100 @@ | |||
| # Sample Function WasmEdge ( written in Rust ) | |||
|
|
|||
| ## Prerequisites | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about including the steps to setup crun in k8s cluster?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll write a guide in https://openfunction.dev](https://openfunction.dev/
Signed-off-by: wrongerror <wangyifei@kubesphere.io>
| kubectl run curl --image=radial/busyboxplus:curl -i --tty | ||
| curl http://wasmedge-http-server.default.svc.cluster.local/echo -X POST -d "WasmEdge" | ||
| WasmEdge | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can copy the doc on openfunction.dev here or add a link to the openfunction.dev doc because they're duplicated content and we'd better maintain one single copy of it
No description provided.