Skip to content

Commit 6011f4d

Browse files
authored
Merge pull request #266 from hegerdes/main
docs: fix yaml indentation for k8s manifests
2 parents c886a4b + 24b0e02 commit 6011f4d

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,10 @@ To carry out the installation step-by-step, do the following:
8686

8787
```yaml
8888
apiVersion: node.k8s.io/v1
89+
handler: spin
8990
kind: RuntimeClass
9091
metadata:
91-
name: wasmtime-spin-v2
92-
handler: spin
93-
92+
name: wasmtime-spin-v2
9493
```
9594

9695
4. Deploy a Spin app to your cluster with the specified `RuntimeClass` name matching the "wasmtime-spin-v2" runtime class from step 3. The [Spin Operator](../spin-operator/_index.md) does this for you, translating `SpinApp` custom resources into Kubernetes deployments.
@@ -99,22 +98,22 @@ To carry out the installation step-by-step, do the following:
9998
apiVersion: apps/v1
10099
kind: Deployment
101100
metadata:
102-
name: wasm-spin
101+
name: wasm-spin
103102
spec:
104-
replicas: 1
105-
selector:
103+
replicas: 1
104+
selector:
106105
matchLabels:
107-
app: wasm-spin
108-
template:
106+
app: wasm-spin
107+
template:
109108
metadata:
110-
labels:
109+
labels:
111110
app: wasm-spin
112111
spec:
113-
runtimeClassName: wasmtime-spin-v2
114-
containers:
112+
runtimeClassName: wasmtime-spin-v2
113+
containers:
115114
- name: spin-hello
116-
image: ghcr.io/spinkube/containerd-shim-spin/examples/spin-rust-hello:v0.13.0
117-
command: ["/"]
115+
image: ghcr.io/spinkube/containerd-shim-spin/examples/spin-rust-hello:v0.13.0
116+
command: ["/"]
118117
```
119118

120119
## Locating build artifacts
@@ -145,4 +144,4 @@ For questions or support, please visit our [Slack channel](https://cloud-native.
145144

146145
## Contributing
147146

148-
If you would like to contribute, please visit this [contributing](https://www.spinkube.dev/docs/contrib/) page.
147+
If you would like to contribute, please visit this [contributing](https://www.spinkube.dev/docs/contrib/) page.

0 commit comments

Comments
 (0)