Merge pull request #458 from amshinde/change-doc-for-runtimeclass

kata-deploy: Change the kata-deploy doc to use yaml files
This commit is contained in:
Graham Whaley 2019-05-10 08:49:59 +01:00 committed by GitHub
commit b9f601c2d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,29 @@ Workloads which utilize Kata can node-select based on ```katacontainers.io/kata-
run through an applicable runtime if they are marked with the appropriate runtimeClass annotation. run through an applicable runtime if they are marked with the appropriate runtimeClass annotation.
In order to use a workload Kata with QEMU, first add a `RuntimeClass` as:
- For k8s 1.14:
```
kubectl apply -f https://raw.githubusercontent.com/kata-containers/packaging/master/kata-deploy/k8s-1.14/kata-qemu-runtimeClass.yaml
```
- For k8s 1.13:
```
kubectl apply -f https://raw.githubusercontent.com/kata-containers/packaging/master/kata-deploy/k8s-1.13/kata-qemu-runtimeClass.yaml
```
In order to use a workload Kata with Firecracker, first add a `RuntimeClass` as:
- For k8s 1.14:
```
kubectl apply -f https://raw.githubusercontent.com/kata-containers/packaging/master/kata-deploy/k8s-1.14/kata-fc-runtimeClass.yaml
```
- For k8s 1.13:
```
kubectl apply -f https://raw.githubusercontent.com/kata-containers/packaging/master/kata-deploy/k8s-1.13/kata-fc-runtimeClass.yaml
```
The following YAML snippet shows how to specify a workload should use Kata with QEMU: The following YAML snippet shows how to specify a workload should use Kata with QEMU:
``` ```
spec: spec:
@ -96,7 +119,6 @@ spec:
runtimeClassName: kata-fc runtimeClassName: kata-fc
``` ```
To run an example with kata-qemu: To run an example with kata-qemu:
``` ```