From 3444aa68f0afeb5159a9e6649cba42c9552bf7c1 Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Thu, 25 Apr 2019 11:30:26 -0700 Subject: [PATCH] kata-deploy: Change the kata-deploy doc to use yaml files Change the kata-deploy doc to get rid of code-snippets and instead include instructions to apply the provided RuntimeClass yaml according to the k8s version being used. Fixes #457 Signed-off-by: Archana Shinde --- kata-deploy/README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/kata-deploy/README.md b/kata-deploy/README.md index be17477249..e3578d0691 100644 --- a/kata-deploy/README.md +++ b/kata-deploy/README.md @@ -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: ```