[zh] Fix unexpected markdown rendering in /content/zh-cn/docs/reference/kubectl/cheatsheet.md

pull/34431/head
Bobby Rong 2022-06-21 09:31:18 +08:00 committed by GitHub
parent 10ba719413
commit 0b0cb200fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -720,6 +720,8 @@ kubectl exec -n my-namespace my-pod -- tar cf - /tmp/foo | tar xf - -C /tmp/bar
```bash
tar cf - /tmp/foo | kubectl exec -i -n my-namespace my-pod -- tar xf - -C /tmp/bar # 将 /tmp/foo 本地文件复制到远程 “my-namespace” 命名空间中 pod 中的 /tmp/bar
kubectl exec -n my-namespace my-pod -- tar cf - /tmp/foo | tar xf - -C /tmp/bar # 将 /tmp/foo 从远程 pod 复制到本地 /tmp/bar
```
<!--
## Interacting with Deployments and Services
-->