真题解析

题目

Context

该 cluster 使用 containerd 作为 CRI 运行时。containerd 的默认运行时处理程序是 runc 。containerd 已准备好支持额外的运行时处理程序 runsc (gVisor) 。

Task

使用名为 runsc 的现有运行时处理程序,创建一个名为 untrusted 的 RuntimeClass。

更新 namespace client 中的所有 Pod 以在 gVisor 上运行。

circle-info

你可以在 /home/candidate/KSMV00301/runtime-class.yaml 找到一个模版清单文件。

解析

RuntimeClass 官方文档:

https://kubernetes.io/zh-cn/docs/concepts/containers/runtime-class/arrow-up-right

配置 RuntimeClass

配置 Pod 的 RuntimeClass

Last updated