We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0a372 commit eeb13efCopy full SHA for eeb13ef
content/zh-cn/docs/tutorials/security/apparmor.md
@@ -233,7 +233,7 @@ discussed in [Setting up nodes with profiles](#setting-up-nodes-with-profiles).
233
-->
234
```shell
235
# 此示例假设节点名称与主机名称匹配,并且可通过 SSH 访问。
236
-NODES=($(kubectl get nodes -o name))
+NODES=($( kubectl get node -o jsonpath='{.items[*].status.addresses[?(.type == "Hostname")].address}' ))
237
for NODE in ${NODES[*]}; do ssh $NODE 'sudo apparmor_parser -q <<EOF
238
#include <tunables/global>
239
0 commit comments