Merge pull request #34431 from bobby285271/fix-markdown-rendering-cheatsheet

[zh] Fix unexpected markdown rendering in /content/zh-cn/docs/reference/kubectl/cheatsheet.md
pull/34432/head
Kubernetes Prow Robot 2022-06-20 19:45:42 -07:00 committed by GitHub
commit f0b31e405b
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
-->