Merge pull request #48939 from aivantsov/patch-1

Fix collection of node host names for AppArmor profile distribution
pull/48666/head
Kubernetes Prow Robot 2024-12-04 10:49:01 +00:00 committed by GitHub
commit 5710f3609c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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>