[zh] Tidy list of generators for “kubectl create”

This commit is contained in:
Arhell 2021-02-08 01:57:13 +02:00
parent 39edec0aac
commit 5ed2b712a2
1 changed files with 34 additions and 34 deletions

View File

@ -85,42 +85,42 @@ See the Kubernetes v1.17 documentation for a [list](https://v1-17.docs.kubernete
#### 生成器 #### 生成器
<!-- <!--
You can generate the following resources with a kubectl command, `kubectl create --dry-run=client -o yaml`: You can generate the following resources with a kubectl command, `kubectl create --dry-run=client -o yaml`:
```
clusterrole Create a ClusterRole. * `clusterrole`: Create a ClusterRole.
clusterrolebinding Create a ClusterRoleBinding for a particular ClusterRole. * `clusterrolebinding`: Create a ClusterRoleBinding for a particular ClusterRole.
configmap Create a configmap from a local file, directory or literal value. * `configmap`: Create a ConfigMap from a local file, directory or literal value.
cronjob Create a cronjob with the specified name. * `cronjob`: Create a CronJob with the specified name.
deployment Create a deployment with the specified name. * `deployment`: Create a Deployment with the specified name.
job Create a job with the specified name. * `job`: Create a Job with the specified name.
namespace Create a namespace with the specified name. * `namespace`: Create a Namespace with the specified name.
poddisruptionbudget Create a pod disruption budget with the specified name. * `poddisruptionbudget`: Create a PodDisruptionBudget with the specified name.
priorityclass Create a priorityclass with the specified name. * `priorityclass`: Create a PriorityClass with the specified name.
quota Create a quota with the specified name. * `quota`: Create a Quota with the specified name.
role Create a role with single rule. * `role`: Create a Role with single rule.
rolebinding Create a RoleBinding for a particular Role or ClusterRole. * `rolebinding`: Create a RoleBinding for a particular Role or ClusterRole.
secret Create a secret using specified subcommand. * `secret`: Create a Secret using specified subcommand.
service Create a service using specified subcommand. * `service`: Create a Service using specified subcommand.
serviceaccount Create a service account with the specified name. * `serviceaccount`: Create a ServiceAccount with the specified name.
```
--> -->
你可以使用 kubectl 命令生成以下资源, `kubectl create --dry-run=client -o yaml` 你可以使用 kubectl 命令生成以下资源, `kubectl create --dry-run=client -o yaml`
```
clusterrole 创建 ClusterRole。 * `clusterrole`: 创建 ClusterRole。
clusterrolebinding 为特定的 ClusterRole 创建 ClusterRoleBinding。 * `clusterrolebinding`: 为特定的 ClusterRole 创建 ClusterRoleBinding。
configmap 使用本地文件、目录或文本值创建 Configmap。 * `configmap`: 使用本地文件、目录或文本值创建 Configmap。
cronjob 使用指定的名称创建 Cronjob。 * `cronjob`: 使用指定的名称创建 Cronjob。
deployment 使用指定的名称创建 Deployment。 * `deployment`: 使用指定的名称创建 Deployment。
job 使用指定的名称创建 Job。 * `job`: 使用指定的名称创建 Job。
namespace 使用指定的名称创建名称空间。 * `namespace`: 使用指定的名称创建名称空间。
poddisruptionbudget 使用指定名称创建 Pod 干扰预算。 * `poddisruptionbudget`: 使用指定名称创建 Pod 干扰预算。
priorityclass 使用指定的名称创建 Priorityclass。 * `priorityclass`: 使用指定的名称创建 Priorityclass。
quota 使用指定的名称创建配额。 * `quota`: 使用指定的名称创建配额。
role 使用单一规则创建角色。 * `role`: 使用单一规则创建角色。
rolebinding 为特定角色或 ClusterRole 创建 RoleBinding。 * `rolebinding`: 为特定角色或 ClusterRole 创建 RoleBinding。
secret 使用指定的子命令创建 Secret。 * `secret`: 使用指定的子命令创建 Secret。
service 使用指定的子命令创建服务。 * `service`: 使用指定的子命令创建服务。
serviceaccount 使用指定的名称创建服务帐户。 * `serviceaccount`: 使用指定的名称创建服务帐户。
```
### `kubectl apply` ### `kubectl apply`