add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -0,0 +1,24 @@
# kubectl run
> 在Kubernetes中运行Pod。指定Pod生成器以避免某些K8S版本中的弃用错误。
> 更多信息:<https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run>。
- 运行一个nginx Pod并暴露80端口
`kubectl run {{nginx-dev}} --image=nginx --port 80`
- 运行一个nginx Pod设置TEST_VAR环境变量
`kubectl run {{nginx-dev}} --image=nginx --env="{{TEST_VAR}}={{testing}}"`
- 显示创建nginx容器所需的API调用
`kubectl run {{nginx-dev}} --image=nginx --dry-run={{none|server|client}}`
- 以交互方式运行一个Ubuntu Pod永不重启并在退出时将其删除
`kubectl run {{temp-ubuntu}} --image=ubuntu:22.04 --restart=Never --rm -- /bin/bash`
- 运行一个Ubuntu Pod用echo覆盖默认命令并指定自定义参数
`kubectl run {{temp-ubuntu}} --image=ubuntu:22.04 --command -- echo {{argument1 argument2 ...}}`