From a7ae14b3b051997df4e6acbd59a1a470ed1f552c Mon Sep 17 00:00:00 2001 From: Thomas Balthazar Date: Mon, 7 Nov 2022 12:18:35 +0100 Subject: [PATCH] Update deprecated kubectl command in apparmor doc This updates example `kubectl exec` commands to avoid warnings. It is a follow-up change to kubernetes#37221. Running `kubectl exec ` 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 -- ` --- content/ko/docs/tutorials/security/apparmor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/ko/docs/tutorials/security/apparmor.md b/content/ko/docs/tutorials/security/apparmor.md index c454fef915..4bab3983bc 100644 --- a/content/ko/docs/tutorials/security/apparmor.md +++ b/content/ko/docs/tutorials/security/apparmor.md @@ -160,7 +160,7 @@ kubectl get events | grep Created 컨테이너의 루트 프로세스가 올바른 프로파일로 실행되는지는 proc attr을 확인하여 직접 검증할 수 있다. ```shell -kubectl exec cat /proc/1/attr/current +kubectl exec -- cat /proc/1/attr/current ``` ``` k8s-apparmor-example-deny-write (enforce)