Skip to content

Commit 80aa5f5

Browse files
authored
Merge pull request #45014 from my-git9/patch-14702
[zh-cn] sync kubectl/quick-reference.md
2 parents 2525fba + cbaa0dd commit 80aa5f5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ Kubernetes 配置可以用 YAML 或 JSON 定义。可以使用的文件扩展名
219219

220220
<!--
221221
```bash
222-
kubectl apply -f ./my-manifest.yaml # create resource(s)
223-
kubectl apply -f ./my1.yaml -f ./my2.yaml # create from multiple files
224-
kubectl apply -f ./dir # create resource(s) in all manifest files in dir
225-
kubectl apply -f https://git.io/vPieo # create resource(s) from url
226-
kubectl create deployment nginx --image=nginx # start a single instance of nginx
222+
kubectl apply -f ./my-manifest.yaml # create resource(s)
223+
kubectl apply -f ./my1.yaml -f ./my2.yaml # create from multiple files
224+
kubectl apply -f ./dir # create resource(s) in all manifest files in dir
225+
kubectl apply -f https://example.com/manifest.yaml # create resource(s) from url (Note: this is an example domain and does not contain a valid manifest)
226+
kubectl create deployment nginx --image=nginx # start a single instance of nginx
227227
228228
# create a Job which prints "Hello World"
229229
kubectl create job hello --image=busybox:1.28 -- echo "Hello World"
@@ -274,11 +274,11 @@ EOF
274274
```
275275
-->
276276
```bash
277-
kubectl apply -f ./my-manifest.yaml # 创建资源
278-
kubectl apply -f ./my1.yaml -f ./my2.yaml # 使用多个文件创建
279-
kubectl apply -f ./dir # 基于目录下的所有清单文件创建资源
280-
kubectl apply -f https://git.io/vPieo # 从 URL 中创建资源
281-
kubectl create deployment nginx --image=nginx # 启动单实例 nginx
277+
kubectl apply -f ./my-manifest.yaml # 创建资源
278+
kubectl apply -f ./my1.yaml -f ./my2.yaml # 使用多个文件创建
279+
kubectl apply -f ./dir # 基于目录下的所有清单文件创建资源
280+
kubectl apply -f https://example.com/manifest.yaml # 从 URL 中创建资源(注意:这是一个示例域名,不包含有效的清单)
281+
kubectl create deployment nginx --image=nginx # 启动单实例 nginx
282282

283283
# 创建一个打印 “Hello World” 的 Job
284284
kubectl create job hello --image=busybox:1.28 -- echo "Hello World"

0 commit comments

Comments
 (0)