Skip to content

Commit 66dbc9c

Browse files
authored
Merge pull request #48957 from my-git9/pp-6332
[zh-cn]sync apparmor.md
2 parents a1918b7 + eeb13ef commit 66dbc9c

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)