Skip to content

Commit

Permalink
Merge pull request kubernetes#48957 from my-git9/pp-6332
Browse files Browse the repository at this point in the history
[zh-cn]sync apparmor.md
  • Loading branch information
k8s-ci-robot authored Dec 7, 2024
2 parents a1918b7 + eeb13ef commit 66dbc9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/zh-cn/docs/tutorials/security/apparmor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
#include <tunables/global>
Expand Down

0 comments on commit 66dbc9c

Please sign in to comment.