@@ -71,7 +71,7 @@ AppArmor 是一个可选的内核模块和 Kubernetes 特性,因此请在继
71
71
kubelet 会先验证主机上是否已启用 AppArmor,然后再接纳显式配置了 AppArmor 的 Pod。
72
72
73
73
<!--
74
- 3 . Container runtime supports AppArmor -- All common Kubernetes-supported container
74
+ 1 . Container runtime supports AppArmor -- All common Kubernetes-supported container
75
75
runtimes should support AppArmor, including {{< glossary_tooltip term_id="cri-o" >}} and
76
76
{{< glossary_tooltip term_id="containerd" >}}. Please refer to the corresponding runtime
77
77
documentation and verify that the cluster fulfills the requirements to use AppArmor.
@@ -81,7 +81,7 @@ AppArmor 是一个可选的内核模块和 Kubernetes 特性,因此请在继
81
81
请参考相应的运行时文档并验证集群是否满足使用 AppArmor 的要求。
82
82
83
83
<!--
84
- 3 . Profile is loaded -- AppArmor is applied to a Pod by specifying an AppArmor profile that each
84
+ 1 . Profile is loaded -- AppArmor is applied to a Pod by specifying an AppArmor profile that each
85
85
container should be run with. If any of the specified profiles is not loaded in the
86
86
kernel, the kubelet will reject the Pod. You can view which profiles are loaded on a
87
87
node by checking the `/sys/kernel/security/apparmor/profiles` file. For example:
@@ -455,14 +455,26 @@ AppArmor 配置文件有 2 个字段:
455
455
456
456
<!--
457
457
`type` _(required)_ - indicates which kind of AppArmor profile will be applied. Valid options are:
458
- - `Localhost` - a profile pre-loaded on the node (specified by `localhostProfile`).
459
- - `RuntimeDefault` - the container runtime's default profile.
460
- - `Unconfined` - no AppArmor enforcement.
458
+
459
+ `Localhost`
460
+ : a profile pre-loaded on the node (specified by `localhostProfile`).
461
+
462
+ `RuntimeDefault`
463
+ : the container runtime's default profile.
464
+
465
+ `Unconfined`
466
+ : no AppArmor enforcement.
461
467
-->
462
468
` type ` ** (必需)** - 指示将应用哪种 AppArmor 配置文件。有效选项是:
463
- - ` Localhost ` - 节点上预加载的配置文件(由 ` localhostProfile ` 指定)。
464
- - ` RuntimeDefault ` - 容器运行时的默认配置文件。
465
- - ` Unconfined ` - 没有 AppArmor 强制执行。
469
+
470
+ ` Localhost `
471
+ : 节点上预加载的配置文件(由 ` localhostProfile ` 指定)。
472
+
473
+ ` RuntimeDefault `
474
+ : 容器运行时的默认配置文件。
475
+
476
+ ` Unconfined `
477
+ : 不强制执行 AppArmor。
466
478
467
479
<!--
468
480
`localhostProfile` - The name of a profile loaded on the node that should be used.
0 commit comments