Skip to content

Commit

Permalink
add wasi example with plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
koba1t committed Oct 23, 2024
1 parent 4a7d4ad commit 54e2127
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
13 changes: 13 additions & 0 deletions example-wasi-with-oci/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# $MYAPP/annotator.yaml
apiVersion: transformers.example.co/v1
kind: App
metadata:
name: example-app
annotations:
config.kubernetes.io/function: |
wasip1:
image: ghcr.io/koba1t/krm-fn-app:v0.0.3-wasm
spec:
image: "ghcr.io/koba1t/go-http-server:v0.0.1"
port: 8080
domain: fnapp.x.k06.in
4 changes: 4 additions & 0 deletions example-wasi-with-oci/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace: fnapp-wasm

generators:
- app.yaml
13 changes: 13 additions & 0 deletions example-wasi/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# $MYAPP/annotator.yaml
apiVersion: transformers.example.co/v1
kind: App
metadata:
name: example-app
annotations:
config.kubernetes.io/function: |
wasip1:
file: ../bin/fnapp.wasm
spec:
image: "ghcr.io/koba1t/go-http-server:v0.0.1"
port: 8080
domain: fnapp.x.k06.in
4 changes: 4 additions & 0 deletions example-wasi/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace: fnapp-wasm

generators:
- app.yaml

0 comments on commit 54e2127

Please sign in to comment.