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
-23Lines changed: 0 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,29 +31,6 @@ For `kubectl run` to satisfy infrastructure as code:
31
31
32
32
You can use the `--dry-run=client` flag to preview the object that would be sent to your cluster, without really submitting it.
33
33
34
-
{{< note >}}
35
-
All `kubectl run` generators are deprecated. See the Kubernetes v1.17 documentation for a [list](https://v1-17.docs.kubernetes.io/docs/reference/kubectl/conventions/#generators) of generators and how they were used.
36
-
{{< /note >}}
37
-
38
-
#### Generators
39
-
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 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.
56
-
57
34
### `kubectl apply`
58
35
59
36
* 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