Skip to content

Commit 0e31a40

Browse files
authored
Update deprecated kubectl command in apparmor doc
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 0e31a40

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
@@ -158,7 +158,7 @@ kubectl get events | grep Created
158158
You can also verify directly that the container's root process is running with the correct profile by checking its proc attr:
159159
160160
```shell
161-
kubectl exec <pod_name> cat /proc/1/attr/current
161+
kubectl exec <pod_name> -- cat /proc/1/attr/current
162162
```
163163
```
164164
k8s-apparmor-example-deny-write (enforce)

0 commit comments

Comments
 (0)