Skip to content

Commit a7ae14b

Browse files
committed
Update deprecated kubectl command in apparmor doc
This updates example `kubectl exec` commands to avoid warnings. It is a follow-up change to #37221. 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 daec843 commit a7ae14b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/ko/docs/tutorials/security/apparmor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ kubectl get events | grep Created
160160
컨테이너의 루트 프로세스가 올바른 프로파일로 실행되는지는 proc attr을 확인하여 직접 검증할 수 있다.
161161
162162
```shell
163-
kubectl exec <pod_name> cat /proc/1/attr/current
163+
kubectl exec <pod_name> -- cat /proc/1/attr/current
164164
```
165165
```
166166
k8s-apparmor-example-deny-write (enforce)

0 commit comments

Comments
 (0)