Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Due to exec command DEPRECATED. so please add `--` to avoid info message. `Current` ``` root@wk8s-m:~# kubectl exec hello-apparmor cat /proc/1/attr/current kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead. k8s-apparmor-example-deny-write (enforce) ``` ``` root@wk8s-m:~# kubectl exec hello-apparmor touch /tmp/test kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead. touch: /tmp/test: Permission denied command terminated with exit code 1 ``` `Change` ``` root@wk8s-m:~# kubectl exec hello-apparmor -- cat /proc/1/attr/current k8s-apparmor-example-deny-write (enforce) ``` ``` root@wk8s-m:~# kubectl exec hello-apparmor -- touch /tmp/test touch: /tmp/test: Permission denied command terminated with exit code 1 ```
- Loading branch information