Skip to content

Commit c1d92a4

Browse files
committed
runtimeclas s
1 parent 8365f02 commit c1d92a4

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

runtimeclass/Readme.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# spin installation
2+
```
3+
curl -fsSL https://developer.fermyon.com/downloads/install.sh | bash
4+
sudo mv spin /usr/local/bin/
5+
6+
```
7+
#3 Project Scaffolding
8+
```
9+
spin kube scaffold --from ghcr.io/spinkube/containerd-shim-spin/examples/spin-rust-hello:v0.13.0 > hello-world.yaml
10+
```
11+
## cert Manager
12+
```
13+
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.14.5/cert-manager.yaml
14+
15+
```
16+
## Kwasm
17+
18+
```
19+
helm repo add kwasm http://kwasm.sh/kwasm-operator/
20+
helm install kwasm-operator kwasm/kwasm-operator --namespace kwasm --create-namespace \
21+
--set kwasmOperator.installerImage=ghcr.io/spinkube/containerd-shim-spin/node-installer:v0.18.0
22+
kubectl annotate node --all kwasm.sh/kwasm-node=true
23+
24+
```
25+
26+
## Spinkube CRD and runtime class
27+
```
28+
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.4.0/spin-operator.crds.yaml
29+
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.4.0/spin-operator.runtime-class.yaml
30+
31+
```
32+
## Spin operator install
33+
```
34+
helm install spin-operator --namespace spin-operator --create-namespace --version 0.4.0 --wait \
35+
oci://ghcr.io/spinkube/charts/spin-operator
36+
37+
```
38+
## Shim executor
39+
40+
```
41+
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.4.0/spin-operator.shim-executor.yaml
42+
43+
```
44+
45+
## Deploy app
46+
47+
```
48+
kubectl apply -f https://raw.githubusercontent.com/spinkube/spin-operator/main/config/samples/simple.yaml
49+
kubectl port-forward svc/simple-spinapp 8083:80
50+
51+
```

0 commit comments

Comments
 (0)