From 30fc2c863dd5bfcc779448e6ac5e5ac7e2aaa125 Mon Sep 17 00:00:00 2001 From: Chelsea Mafrica Date: Wed, 9 Mar 2022 17:30:41 -0800 Subject: [PATCH] docs: Update k8s documentation Update documentation with missing step to untaint node to enable scheduling and update the example to run a pod using the kata runtime class instead of untrusted workloads, which applies to versions of CRI-O prior to v1.12. Fixes #3863 Signed-off-by: Chelsea Mafrica (cherry picked from commit 5c434270d14734455aad133624a7ab5379cf7be8) --- docs/how-to/run-kata-with-k8s.md | 77 +++++++++++++++++++++++++------- 1 file changed, 60 insertions(+), 17 deletions(-) diff --git a/docs/how-to/run-kata-with-k8s.md b/docs/how-to/run-kata-with-k8s.md index 29d7309876..fd53838b88 100644 --- a/docs/how-to/run-kata-with-k8s.md +++ b/docs/how-to/run-kata-with-k8s.md @@ -104,26 +104,69 @@ $ sudo kubeadm init --ignore-preflight-errors=all --cri-socket /run/containerd/c $ export KUBECONFIG=/etc/kubernetes/admin.conf ``` -You can force Kubelet to use Kata Containers by adding some `untrusted` -annotation to your pod configuration. In our case, this ensures Kata -Containers is the selected runtime to run the described workload. +### Allow pods to run in the master node -`nginx-untrusted.yaml` -```yaml -apiVersion: v1 -kind: Pod +By default, the cluster will not schedule pods in the master node. To enable master node scheduling: +```bash +$ sudo -E kubectl taint nodes --all node-role.kubernetes.io/master- +``` + +### Create runtime class for Kata Containers + +Users can use [`RuntimeClass`](https://kubernetes.io/docs/concepts/containers/runtime-class/#runtime-class) to specify a different runtime for Pods. + +```bash +$ cat > runtime.yaml <