Skip to content

Commit af198fe

Browse files
authored
Merge pull request #32124 from my-git9/patch-39
Update conventions.md
2 parents de061dd + 4e98cfe commit af198fe

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

content/zh/docs/reference/kubectl/conventions.md

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -70,58 +70,6 @@ You can use the `--dry-run=client` flag to preview the object that would be sent
7070
-->
7171
你可以使用 `--dry-run=client` 参数来预览而不真正提交即将下发到集群的对象实例:
7272

73-
{{< note >}}
74-
<!--
75-
All `kubectl run` generators are deprecated.
76-
See the Kubernetes v1.17 documentation for a [list](https://v1-17.docs.kubernetes.io/docs/reference/kubectl/conventions/#generators) of generators and how they were used.
77-
-->
78-
所有的 `kubectl run` 生成器已弃用。
79-
查阅 Kubernetes v1.17 文档中的生成器[列表](https://v1-17.docs.kubernetes.io/docs/reference/kubectl/conventions/#generators)以及它们的用法。
80-
{{< /note >}}
81-
82-
<!--
83-
#### Generators
84-
-->
85-
#### 生成器
86-
<!--
87-
You can generate the following resources with a kubectl command, `kubectl create --dry-run=client -o yaml`:
88-
89-
* `clusterrole`: Create a ClusterRole.
90-
* `clusterrolebinding`: Create a ClusterRoleBinding for a particular ClusterRole.
91-
* `configmap`: Create a ConfigMap from a local file, directory or literal value.
92-
* `cronjob`: Create a CronJob with the specified name.
93-
* `deployment`: Create a Deployment with the specified name.
94-
* `job`: Create a Job with the specified name.
95-
* `namespace`: Create a Namespace with the specified name.
96-
* `poddisruptionbudget`: Create a PodDisruptionBudget with the specified name.
97-
* `priorityclass`: Create a PriorityClass with the specified name.
98-
* `quota`: Create a Quota with the specified name.
99-
* `role`: Create a Role with single rule.
100-
* `rolebinding`: Create a RoleBinding for a particular Role or ClusterRole.
101-
* `secret`: Create a Secret using specified subcommand.
102-
* `service`: Create a Service using specified subcommand.
103-
* `serviceaccount`: Create a ServiceAccount with the specified name.
104-
105-
-->
106-
你可以使用 kubectl 命令生成以下资源, `kubectl create --dry-run=client -o yaml`
107-
108-
* `clusterrole`: 创建 ClusterRole。
109-
* `clusterrolebinding`: 为特定的 ClusterRole 创建 ClusterRoleBinding。
110-
* `configmap`: 使用本地文件、目录或文本值创建 Configmap。
111-
* `cronjob`: 使用指定的名称创建 Cronjob。
112-
* `deployment`: 使用指定的名称创建 Deployment。
113-
* `job`: 使用指定的名称创建 Job。
114-
* `namespace`: 使用指定的名称创建名称空间。
115-
* `poddisruptionbudget`: 使用指定名称创建 Pod 干扰预算。
116-
* `priorityclass`: 使用指定的名称创建 Priorityclass。
117-
* `quota`: 使用指定的名称创建配额。
118-
* `role`: 使用单一规则创建角色。
119-
* `rolebinding`: 为特定角色或 ClusterRole 创建 RoleBinding。
120-
* `secret`: 使用指定的子命令创建 Secret。
121-
* `service`: 使用指定的子命令创建服务。
122-
* `serviceaccount`: 使用指定的名称创建服务帐户。
123-
124-
12573
### `kubectl apply`
12674

12775
<!--

0 commit comments

Comments
 (0)