You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/reference/kubectl/conventions.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,26 @@ For `kubectl run` to satisfy infrastructure as code:
32
32
33
33
You can use the `--dry-run` flag to preview the object that would be sent to your cluster, without really submitting it.
34
34
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
+
35
55
### `kubectl apply`
36
56
37
57
* 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