Skip to content

Commit 7bc5e5e

Browse files
committed
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>`
1 parent dd1a034 commit 7bc5e5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/ja/docs/tutorials/clusters/apparmor.md

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

0 commit comments

Comments
 (0)