Skip to content

Conversation

@wrongerror
Copy link
Member

No description provided.

containers:
- command:
- /wasmedge_hyper_server.wasm
imagePullPolicy: Always
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
```
Copy link
Member

@benjaminhuo benjaminhuo Feb 24, 2023

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

@benjaminhuo benjaminhuo merged commit 53b84d3 into OpenFunction:main Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants