Skip to content

Commit 66fba26

Browse files
authored
Fix collection of node host names for apparmor profile distribution
1 parent cd9f744 commit 66fba26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/tutorials/security/apparmor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ discussed in [Setting up nodes with profiles](#setting-up-nodes-with-profiles).
132132

133133
```shell
134134
# This example assumes that node names match host names, and are reachable via SSH.
135-
NODES=($(kubectl get nodes -o name))
135+
NODES=($(kubectl get nodes -o name | cut -d/ -f2))
136136
137137
for NODE in ${NODES[*]}; do ssh $NODE 'sudo apparmor_parser -q <<EOF
138138
#include <tunables/global>

0 commit comments

Comments
 (0)