Skip to content

Commit

Permalink
Merge pull request #14 from Liquid-Reply/update-readme
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
phyrog authored Apr 13, 2023
2 parents f3b3d91 + 6f50d63 commit 65edce4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 35 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# Spin Examples

## Bookinfo

This example ports the [Istio bookinfo sample applications](https://istio.io/latest/docs/examples/bookinfo/) to WASM and runs them
on Kubernetes using the [kwasm-operator](https://kwasm.sh/) and [Spin](https://www.fermyon.com/spin). Check out the [bookinfo](bookinfo/) for more infos.
37 changes: 37 additions & 0 deletions bookinfo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# bookinfo demo

## Steps to deploy

1. Set up a kind cluster

```bash
kind create cluster
```

2. Install the kwasm-operator and annotate all nodes for kwasm

```bash
helm repo add kwasm http://kwasm.sh/kwasm-operator/
helm install -n kwasm --create-namespace kwasm-operator kwasm/kwasm-operator
kubectl annotate node --all kwasm.sh/kwasm-node=true
```

3. Deploy the Helm chart. Choose one of the provided value files:

- `chart/values.istio.yaml` deploys the 4 bookinfo components as is from the Istio example
- `chart/values.mixed.yaml` deploys the productinfo dashboard and the ratings service from the Istio image and the details and reviews service as wasm modules
- `chart/values.spin.yaml` deploys all 4 services as wasm modules

```bash
helm upgrade --install bookinfo ./chart -f chart/values.istio.yaml
```

The same command with a different values file can be used to switch between the different combinations.

4. (Create an image pull secret for pulling the wasm images)

Should not be necessary any more, but in case we have set the package visibility to private again, you can try creating an image pull secret:

```bash
kubectl create secret docker-registry ghcr --docker-server=ghcr.io --docker-username="$GITHUB_USERNAME" --docker-password="$GITHUB_PERSONAL_ACCESS_TOKEN" --docker-email="[email protected]"
```
35 changes: 0 additions & 35 deletions bookinfo/chart/README.md

This file was deleted.

0 comments on commit 65edce4

Please sign in to comment.