Skip to content

Commit 560c500

Browse files
authored
Update conventions.md
move generators to the end of the section as they are not part of run cmd
1 parent 4d52cb6 commit 560c500

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,26 @@ For `kubectl run` to satisfy infrastructure as code:
3232

3333
You can use the `--dry-run` flag to preview the object that would be sent to your cluster, without really submitting it.
3434

35+
#### Generators
36+
You can generate the following resources with a kubectl command, `kubectl create --dry-run -o yaml`:
37+
```
38+
clusterrole Create a ClusterRole.
39+
clusterrolebinding Create a ClusterRoleBinding for a particular ClusterRole.
40+
configmap Create a configmap from a local file, directory or literal value.
41+
cronjob Create a cronjob with the specified name.
42+
deployment Create a deployment with the specified name.
43+
job Create a job with the specified name.
44+
namespace Create a namespace with the specified name.
45+
poddisruptionbudget Create a pod disruption budget with the specified name.
46+
priorityclass Create a priorityclass with the specified name.
47+
quota Create a quota with the specified name.
48+
role Create a role with single rule.
49+
rolebinding Create a RoleBinding for a particular Role or ClusterRole.
50+
secret Create a secret using specified subcommand.
51+
service Create a service using specified subcommand.
52+
serviceaccount Create a service account with the specified name.
53+
```
54+
3555
### `kubectl apply`
3656

3757
* You can use `kubectl apply` to create or update resources. For more information about using kubectl apply to update resources, see [Kubectl Book](https://kubectl.docs.kubernetes.io).

0 commit comments

Comments
 (0)