From eeb13ef0ced8019684d100e9b9c11db16d77fdcc Mon Sep 17 00:00:00 2001 From: "xin.li" Date: Fri, 6 Dec 2024 09:45:49 +0800 Subject: [PATCH] [zh-cn]sync apparmor.md Signed-off-by: xin.li --- content/zh-cn/docs/tutorials/security/apparmor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/zh-cn/docs/tutorials/security/apparmor.md b/content/zh-cn/docs/tutorials/security/apparmor.md index 7eac3f1a260b8..1c9f1ed3ae3c0 100644 --- a/content/zh-cn/docs/tutorials/security/apparmor.md +++ b/content/zh-cn/docs/tutorials/security/apparmor.md @@ -233,7 +233,7 @@ discussed in [Setting up nodes with profiles](#setting-up-nodes-with-profiles). --> ```shell # 此示例假设节点名称与主机名称匹配,并且可通过 SSH 访问。 -NODES=($(kubectl get nodes -o name)) +NODES=($( kubectl get node -o jsonpath='{.items[*].status.addresses[?(.type == "Hostname")].address}' )) for NODE in ${NODES[*]}; do ssh $NODE 'sudo apparmor_parser -q <