diff --git a/content/zh-cn/docs/reference/kubectl/quick-reference.md b/content/zh-cn/docs/reference/kubectl/quick-reference.md index 7037c5512b962..88e3c48f3e278 100644 --- a/content/zh-cn/docs/reference/kubectl/quick-reference.md +++ b/content/zh-cn/docs/reference/kubectl/quick-reference.md @@ -219,11 +219,11 @@ Kubernetes 配置可以用 YAML 或 JSON 定义。可以使用的文件扩展名 ```bash -kubectl apply -f ./my-manifest.yaml # 创建资源 -kubectl apply -f ./my1.yaml -f ./my2.yaml # 使用多个文件创建 -kubectl apply -f ./dir # 基于目录下的所有清单文件创建资源 -kubectl apply -f https://git.io/vPieo # 从 URL 中创建资源 -kubectl create deployment nginx --image=nginx # 启动单实例 nginx +kubectl apply -f ./my-manifest.yaml # 创建资源 +kubectl apply -f ./my1.yaml -f ./my2.yaml # 使用多个文件创建 +kubectl apply -f ./dir # 基于目录下的所有清单文件创建资源 +kubectl apply -f https://example.com/manifest.yaml # 从 URL 中创建资源(注意:这是一个示例域名,不包含有效的清单) +kubectl create deployment nginx --image=nginx # 启动单实例 nginx # 创建一个打印 “Hello World” 的 Job kubectl create job hello --image=busybox:1.28 -- echo "Hello World"