From 757adfa287c17d925aec7976a86986bd5b52229c Mon Sep 17 00:00:00 2001 From: Ian Lewis Date: Fri, 6 Dec 2019 06:39:35 +0900 Subject: Add docs for Kubernetes Runtime Class. (#33) Adds doc to explicitly create the Kubernetes RuntimeClass object needed to use the shim via the Kubernetes API. --- README.md | 4 +-- docs/runtime-handler-quickstart.md | 45 ++++++++++++++++++++++++++++++ docs/runtime-handler-shim-v2-quickstart.md | 45 ++++++++++++++++++++++++++++++ test/e2e/runtimeclass-install.sh | 33 ++++++++++++++++++++++ 4 files changed, 125 insertions(+), 2 deletions(-) create mode 100755 test/e2e/runtimeclass-install.sh diff --git a/README.md b/README.md index 26efdbc2a..5480ab905 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ gvisor-containerd-shim is a containerd shim for [gVisor](https://github.com/goog ## Installation - [Untrusted Workload Quick Start (containerd >=1.1)](docs/untrusted-workload-quickstart.md) -- [Runtime Handler Quick Start (containerd >=1.2)](docs/runtime-handler-quickstart.md) -- [Runtime Handler Quick Start (shim v2) (containerd >=1.2)](docs/runtime-handler-shim-v2-quickstart.md) +- [Runtime Handler/RuntimeClass Quick Start (containerd >=1.2)](docs/runtime-handler-quickstart.md) +- [Runtime Handler/RuntimeClass Quick Start (shim v2) (containerd >=1.2)](docs/runtime-handler-shim-v2-quickstart.md) # Contributing diff --git a/docs/runtime-handler-quickstart.md b/docs/runtime-handler-quickstart.md index e48b2dd1a..684390b55 100644 --- a/docs/runtime-handler-quickstart.md +++ b/docs/runtime-handler-quickstart.md @@ -204,3 +204,48 @@ sudo crictl inspect ${CONTAINER_ID} sudo crictl exec ${CONTAINER_ID} dmesg | grep -i gvisor } ``` + +### Set up the Kubernetes Runtime Class + +1. Install the Runtime Class for gVisor + +[embedmd]:# (../test/e2e/runtimeclass-install.sh shell /{ # Step 1/ /^}/) +```shell +{ # Step 1: Install a RuntimeClass +cat <