Merge pull request #48939 from aivantsov/patch-1
Fix collection of node host names for AppArmor profile distributionpull/48666/head
commit
5710f3609c
|
@ -132,7 +132,7 @@ discussed in [Setting up nodes with profiles](#setting-up-nodes-with-profiles).
|
|||
|
||||
```shell
|
||||
# This example assumes that node names match host names, and are reachable via 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>
|
||||
|
|
Loading…
Reference in New Issue