Skip to content

Commit eecf1c4

Browse files
authored
Merge pull request #25549 from tomkivlin/patch-1
Tidy list of generators for “kubectl create”
2 parents e53ca2f + f095cf3 commit eecf1c4

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

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

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,22 @@ All `kubectl run` generators are deprecated. See the Kubernetes v1.17 documentat
3737

3838
#### Generators
3939
You can generate the following resources with a kubectl command, `kubectl create --dry-run=client -o yaml`:
40-
```
41-
clusterrole Create a ClusterRole.
42-
clusterrolebinding Create a ClusterRoleBinding for a particular ClusterRole.
43-
configmap Create a configmap from a local file, directory or literal value.
44-
cronjob Create a cronjob with the specified name.
45-
deployment Create a deployment with the specified name.
46-
job Create a job with the specified name.
47-
namespace Create a namespace with the specified name.
48-
poddisruptionbudget Create a pod disruption budget with the specified name.
49-
priorityclass Create a priorityclass with the specified name.
50-
quota Create a quota with the specified name.
51-
role Create a role with single rule.
52-
rolebinding Create a RoleBinding for a particular Role or ClusterRole.
53-
secret Create a secret using specified subcommand.
54-
service Create a service using specified subcommand.
55-
serviceaccount Create a service account with the specified name.
56-
```
40+
41+
* `clusterrole`: Create a ClusterRole.
42+
* `clusterrolebinding`: Create a ClusterRoleBinding for a particular ClusterRole.
43+
* `configmap`: Create a ConfigMap from a local file, directory or literal value.
44+
* `cronjob`: Create a CronJob with the specified name.
45+
* `deployment`: Create a Deployment with the specified name.
46+
* `job`: Create a Job with the specified name.
47+
* `namespace`: Create a Namespace with the specified name.
48+
* `poddisruptionbudget`: Create a PodDisruptionBudget with the specified name.
49+
* `priorityclass`: Create a PriorityClass with the specified name.
50+
* `quota`: Create a Quota with the specified name.
51+
* `role`: Create a Role with single rule.
52+
* `rolebinding`: Create a RoleBinding for a particular Role or ClusterRole.
53+
* `secret`: Create a Secret using specified subcommand.
54+
* `service`: Create a Service using specified subcommand.
55+
* `serviceaccount`: Create a ServiceAccount with the specified name.
5756

5857
### `kubectl apply`
5958

0 commit comments

Comments
 (0)