mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-26 11:39:29 +00:00
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:
commit
b9f601c2d3
@ -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.
|
||||
|
||||
|
||||
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:
|
||||
```
|
||||
spec:
|
||||
@ -96,7 +119,6 @@ spec:
|
||||
runtimeClassName: kata-fc
|
||||
```
|
||||
|
||||
|
||||
To run an example with kata-qemu:
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user