Skip to content

Commit

Permalink
Update deprecated kubectl command in apparmor doc
Browse files Browse the repository at this point in the history
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>`
  • Loading branch information
tbalthazar committed Oct 8, 2022
1 parent dd1a034 commit 0e31a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/docs/tutorials/security/apparmor.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ kubectl get events | grep Created
You can also verify directly that the container's root process is running with the correct profile by checking its 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)
Expand Down

0 comments on commit 0e31a40

Please sign in to comment.