Update deprecated kubectl command in apparmor doc

This PR updates example `kubectl exec` commands to avoid warnings.
It is a follow-up PR to #37221 that also updates the localizations.

Running `kubectl exec <pod_name> <command>` is deprecated:
```
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead
```
It should be: `kubectl exec <pod_name> -- <command>`
pull/37280/head
Thomas Balthazar 2022-10-12 08:26:28 +02:00
parent dd1a03403c
commit 7bc5e5e3ab
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ kubectl get events | grep Created
proc attrを調べることで、コンテナのルートプロセスが正しいプロファイルで実行されているかどうかを直接確認することもできます。
```shell
kubectl exec <pod_name> cat /proc/1/attr/current
kubectl exec <pod_name> -- cat /proc/1/attr/current
```
```
k8s-apparmor-example-deny-write (enforce)