Skip to content

Commit 7d39a83

Browse files
authored
Merge pull request #19928 from AlphaWong/patch-1
update kubectl create commend in kubectl Usage Conventions page
2 parents 2d8009b + c0950b5 commit 7d39a83

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,25 @@ For `kubectl run` to satisfy infrastructure as code:
3333
* Switch to configuration files checked into source control for features that are needed, but not expressible via `kubectl run` flags.
3434

3535
#### 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+
3655

3756
You can create the following resources using `kubectl run` with the `--generator` flag:
3857

0 commit comments

Comments
 (0)