Skip to content

Commit eeb13ef

Browse files
committed
[zh-cn]sync apparmor.md
Signed-off-by: xin.li <[email protected]>
1 parent cf0a372 commit eeb13ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/zh-cn/docs/tutorials/security/apparmor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ discussed in [Setting up nodes with profiles](#setting-up-nodes-with-profiles).
233233
-->
234234
```shell
235235
# 此示例假设节点名称与主机名称匹配,并且可通过 SSH 访问。
236-
NODES=($(kubectl get nodes -o name))
236+
NODES=($( kubectl get node -o jsonpath='{.items[*].status.addresses[?(.type == "Hostname")].address}' ))
237237
for NODE in ${NODES[*]}; do ssh $NODE 'sudo apparmor_parser -q <<EOF
238238
#include <tunables/global>
239239

0 commit comments

Comments
 (0)