Skip to content

Commit 074f051

Browse files
authored
Merge pull request #35455 from aluopy/patch-1
Update cheatsheet.md
2 parents cfd8fb8 + c44e5b5 commit 074f051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/zh-cn/docs/reference/kubectl/cheatsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ kubectl logs -f my-pod -c my-container # 流式输出 Pod 容器的
690690
kubectl logs -f -l name=myLabel --all-containers # 流式输出含 name=myLabel 标签的 Pod 的所有日志(标准输出)
691691
kubectl run -i --tty busybox --image=busybox:1.28 -- sh # 以交互式 Shell 运行 Pod
692692
kubectl run nginx --image=nginx -n mynamespace # 在 “mynamespace” 命名空间中运行单个 nginx Pod
693-
kubectl run nginx --image=nginx # 运行 ngins Pod 并将其规约写入到名为 pod.yaml 的文件
693+
kubectl run nginx --image=nginx # 运行 nginx Pod 并将其规约写入到名为 pod.yaml 的文件
694694
--dry-run=client -o yaml > pod.yaml
695695

696696
kubectl attach my-pod -i # 挂接到一个运行的容器中

0 commit comments

Comments
 (0)