From 54e212796281cededc27c8a54366ef37c0b9ffc6 Mon Sep 17 00:00:00 2001 From: koba1t Date: Tue, 15 Oct 2024 06:13:01 +0900 Subject: [PATCH] add wasi example with plugin --- example-wasi-with-oci/app.yaml | 13 +++++++++++++ example-wasi-with-oci/kustomization.yaml | 4 ++++ example-wasi/app.yaml | 13 +++++++++++++ example-wasi/kustomization.yaml | 4 ++++ 4 files changed, 34 insertions(+) create mode 100644 example-wasi-with-oci/app.yaml create mode 100644 example-wasi-with-oci/kustomization.yaml create mode 100644 example-wasi/app.yaml create mode 100644 example-wasi/kustomization.yaml diff --git a/example-wasi-with-oci/app.yaml b/example-wasi-with-oci/app.yaml new file mode 100644 index 0000000..bc84487 --- /dev/null +++ b/example-wasi-with-oci/app.yaml @@ -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 diff --git a/example-wasi-with-oci/kustomization.yaml b/example-wasi-with-oci/kustomization.yaml new file mode 100644 index 0000000..ca83fd5 --- /dev/null +++ b/example-wasi-with-oci/kustomization.yaml @@ -0,0 +1,4 @@ +namespace: fnapp-wasm + +generators: +- app.yaml diff --git a/example-wasi/app.yaml b/example-wasi/app.yaml new file mode 100644 index 0000000..3a8c288 --- /dev/null +++ b/example-wasi/app.yaml @@ -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 diff --git a/example-wasi/kustomization.yaml b/example-wasi/kustomization.yaml new file mode 100644 index 0000000..ca83fd5 --- /dev/null +++ b/example-wasi/kustomization.yaml @@ -0,0 +1,4 @@ +namespace: fnapp-wasm + +generators: +- app.yaml