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
<p> Create a cluster role named "foo" with SubResource specified</p>
@@ -329,7 +329,7 @@ <h3 id="flags">Flags</h3>
329
329
<td>group</td>
330
330
<td></td>
331
331
<td>[]</td>
332
-
<td>Groups to bind to the clusterrole </td>
332
+
<td>Groups to bind to the clusterrole. The flag can be repeated to add multiple groups.</td>
333
333
</tr>
334
334
<tr>
335
335
<td>output</td>
@@ -347,7 +347,7 @@ <h3 id="flags">Flags</h3>
347
347
<td>serviceaccount</td>
348
348
<td></td>
349
349
<td>[]</td>
350
-
<td>Service accounts to bind to the clusterrole, in the format <namespace>:<name> </td>
350
+
<td>Service accounts to bind to the clusterrole, in the format <namespace>:<name>. The flag can be repeated to add multiple service accounts.</td>
<p> Create a role named "foo" with API Group specified</p>
1294
1294
</blockquote>
1295
-
<preclass="code-block example"><codeclass="lang-shell">kubectl create role foo <spanclass="hljs-attribute">--verb</span>=get,list,watch <spanclass="hljs-attribute">--resource</span>=rs.extensions
1295
+
<preclass="code-block example"><codeclass="lang-shell">kubectl create role foo <spanclass="hljs-attribute">--verb</span>=get,list,watch <spanclass="hljs-attribute">--resource</span>=rs.apps
1296
1296
</code></pre>
1297
1297
<blockquoteclass="code-block example">
1298
1298
<p> Create a role named "foo" with SubResource specified</p>
@@ -1430,7 +1430,7 @@ <h3 id="flags">Flags</h3>
1430
1430
<td>group</td>
1431
1431
<td></td>
1432
1432
<td>[]</td>
1433
-
<td>Groups to bind to the role </td>
1433
+
<td>Groups to bind to the role. The flag can be repeated to add multiple groups.</td>
1434
1434
</tr>
1435
1435
<tr>
1436
1436
<td>output</td>
@@ -1454,7 +1454,7 @@ <h3 id="flags">Flags</h3>
1454
1454
<td>serviceaccount</td>
1455
1455
<td></td>
1456
1456
<td>[]</td>
1457
-
<td>Service accounts to bind to the role, in the format <namespace>:<name> </td>
1457
+
<td>Service accounts to bind to the role, in the format <namespace>:<name>. The flag can be repeated to add multiple service accounts.</td>
1458
1458
</tr>
1459
1459
<tr>
1460
1460
<td>show-managed-fields</td>
@@ -2458,7 +2458,7 @@ <h3 id="flags">Flags</h3>
2458
2458
<td>output</td>
2459
2459
<td>o</td>
2460
2460
<td></td>
2461
-
<td>Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file, custom-columns, custom-columns-file, wide). See custom columns <span>[</span><ahref="https://kubernetes.io/docs/reference/kubectl/overview/#custom-columns">https://kubernetes.io/docs/reference/kubectl/overview/#custom-columns</a><span>]</span>, golang template <span>[</span><ahref="http://golang.org/pkg/text/template/#pkg-overview">http://golang.org/pkg/text/template/#pkg-overview</a><span>]</span> and jsonpath template <span>[</span><ahref="https://kubernetes.io/docs/reference/kubectl/jsonpath/">https://kubernetes.io/docs/reference/kubectl/jsonpath/</a><span>]</span>. </td>
2461
+
<td>Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file, custom-columns, custom-columns-file, wide). See custom columns <span>[</span><ahref="https://kubernetes.io/docs/reference/kubectl/#custom-columns">https://kubernetes.io/docs/reference/kubectl/#custom-columns</a><span>]</span>, golang template <span>[</span><ahref="http://golang.org/pkg/text/template/#pkg-overview">http://golang.org/pkg/text/template/#pkg-overview</a><span>]</span> and jsonpath template <span>[</span><ahref="https://kubernetes.io/docs/reference/kubectl/jsonpath/">https://kubernetes.io/docs/reference/kubectl/jsonpath/</a><span>]</span>. </td>
2462
2462
</tr>
2463
2463
<tr>
2464
2464
<td>output-watch-events</td>
@@ -2626,12 +2626,6 @@ <h3 id="flags">Flags</h3>
2626
2626
<td>If true, wait for the Pod to start running, and then attach to the Pod as if 'kubectl attach ...' were called. Default false, unless '-i/--stdin' is set, in which case the default is true. With '--restart=Never' the exit code of the container process is returned. </td>
2627
2627
</tr>
2628
2628
<tr>
2629
-
<td>cascade</td>
2630
-
<td></td>
2631
-
<td>background</td>
2632
-
<td>Must be "background", "orphan", or "foreground". Selects the deletion cascading strategy for the dependents (e.g. Pods created by a ReplicationController). Defaults to background. </td>
2633
-
</tr>
2634
-
<tr>
2635
2629
<td>command</td>
2636
2630
<td></td>
2637
2631
<td>false</td>
@@ -2662,24 +2656,6 @@ <h3 id="flags">Flags</h3>
2662
2656
<td>Name of the manager used to track field ownership. </td>
2663
2657
</tr>
2664
2658
<tr>
2665
-
<td>filename</td>
2666
-
<td>f</td>
2667
-
<td>[]</td>
2668
-
<td>to use to replace the resource. </td>
2669
-
</tr>
2670
-
<tr>
2671
-
<td>force</td>
2672
-
<td></td>
2673
-
<td>false</td>
2674
-
<td>If true, immediately remove resources from API and bypass graceful deletion. Note that immediate deletion of some resources may result in inconsistency or data loss and requires confirmation. </td>
2675
-
</tr>
2676
-
<tr>
2677
-
<td>grace-period</td>
2678
-
<td></td>
2679
-
<td>-1</td>
2680
-
<td>Period of time in seconds given to the resource to terminate gracefully. Ignored if negative. Set to 1 for immediate shutdown. Can only be set to 0 when --force is true (force deletion). </td>
2681
-
</tr>
2682
-
<tr>
2683
2659
<td>image</td>
2684
2660
<td></td>
2685
2661
<td></td>
@@ -2692,12 +2668,6 @@ <h3 id="flags">Flags</h3>
2692
2668
<td>The image pull policy for the container. If left empty, this value will not be specified by the client and defaulted by the server. </td>
2693
2669
</tr>
2694
2670
<tr>
2695
-
<td>kustomize</td>
2696
-
<td>k</td>
2697
-
<td></td>
2698
-
<td>Process a kustomization directory. This flag can't be used together with -f or -R. </td>
2699
-
</tr>
2700
-
<tr>
2701
2671
<td>labels</td>
2702
2672
<td>l</td>
2703
2673
<td></td>
@@ -2758,12 +2728,6 @@ <h3 id="flags">Flags</h3>
2758
2728
<td>Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists. </td>
2759
2729
</tr>
2760
2730
<tr>
2761
-
<td>recursive</td>
2762
-
<td>R</td>
2763
-
<td>false</td>
2764
-
<td>Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. </td>
2765
-
</tr>
2766
-
<tr>
2767
2731
<td>restart</td>
2768
2732
<td></td>
2769
2733
<td>Always</td>
@@ -2800,23 +2764,11 @@ <h3 id="flags">Flags</h3>
2800
2764
<td>Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates <span>[</span><ahref="http://golang.org/pkg/text/template/#pkg-overview">http://golang.org/pkg/text/template/#pkg-overview</a><span>]</span>. </td>
2801
2765
</tr>
2802
2766
<tr>
2803
-
<td>timeout</td>
2804
-
<td></td>
2805
-
<td>0s</td>
2806
-
<td>The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object </td>
2807
-
</tr>
2808
-
<tr>
2809
2767
<td>tty</td>
2810
2768
<td>t</td>
2811
2769
<td>false</td>
2812
2770
<td>Allocate a TTY for the container in the pod. </td>
2813
2771
</tr>
2814
-
<tr>
2815
-
<td>wait</td>
2816
-
<td></td>
2817
-
<td>false</td>
2818
-
<td>If true, wait for resources to be gone before returning. This waits for finalizers. </td>
2819
-
</tr>
2820
2772
</tbody>
2821
2773
</table>
2822
2774
<hr>
@@ -3031,7 +2983,7 @@ <h1 id="delete">delete</h1>
3031
2983
<blockquoteclass="code-block example">
3032
2984
<p> Delete resources from all files that end with '.json' - i.e. expand wildcard characters in file names</p>
<p>Delete resources by file names, stdin, resources and names, or by resources and label selector.<br><br> JSON and YAML formats are accepted. Only one type of argument may be specified: file names, resources and names, or resources and label selector.<br><br> Some resources, such as pods, support graceful deletion. These resources define a default period before they are forcibly terminated (the grace period) but you may override that value with the --grace-period flag, or pass --now to set a grace-period of 1. Because these resources often represent entities in the cluster, deletion may not be acknowledged immediately. If the node hosting a pod is down or cannot reach the API server, termination may take significantly longer than the grace period. To force delete a resource, you must specify the --force flag. Note: only a subset of resources support graceful deletion. In absence of the support, the --grace-period flag is ignored.<br><br> IMPORTANT: Force deleting pods does not wait for confirmation that the pod's processes have been terminated, which can leave those processes running until the node detects the deletion and completes graceful deletion. If your processes use shared storage or talk to a remote API and depend on the name of the pod to identify themselves, force deleting those pods may result in multiple processes running on different machines using the same identification which may lead to data corruption or inconsistency. Only force delete pods when you are sure the pod is terminated, or if your application can tolerate multiple copies of the same pod running at once. Also, if you force delete pods, the scheduler may place new pods on those nodes before the node has released those resources and causing those pods to be evicted immediately.<br><br> Note that the delete command does NOT do resource version checks, so if someone submits an update to a resource right when you submit a delete, their update will be lost along with the rest of the resource.<br><br> After a CustomResourceDefinition is deleted, invalidation of discovery cache may take up to 10 minutes. If you don't want to wait, you might want to run "kubectl api-resources" to refresh the discovery cache.</p>
3018
+
<p>Delete resources by file names, stdin, resources and names, or by resources and label selector.<br><br> JSON and YAML formats are accepted. Only one type of argument may be specified: file names, resources and names, or resources and label selector.<br><br> Some resources, such as pods, support graceful deletion. These resources define a default period before they are forcibly terminated (the grace period) but you may override that value with the --grace-period flag, or pass --now to set a grace-period of 1. Because these resources often represent entities in the cluster, deletion may not be acknowledged immediately. If the node hosting a pod is down or cannot reach the API server, termination may take significantly longer than the grace period. To force delete a resource, you must specify the --force flag. Note: only a subset of resources support graceful deletion. In absence of the support, the --grace-period flag is ignored.<br><br> IMPORTANT: Force deleting pods does not wait for confirmation that the pod's processes have been terminated, which can leave those processes running until the node detects the deletion and completes graceful deletion. If your processes use shared storage or talk to a remote API and depend on the name of the pod to identify themselves, force deleting those pods may result in multiple processes running on different machines using the same identification which may lead to data corruption or inconsistency. Only force delete pods when you are sure the pod is terminated, or if your application can tolerate multiple copies of the same pod running at once. Also, if you force delete pods, the scheduler may place new pods on those nodes before the node has released those resources and causing those pods to be evicted immediately.<br><br> Note that the delete command does NOT do resource version checks, so if someone submits an update to a resource right when you submit a delete, their update will be lost along with the rest of the resource.<br><br> After a CustomResourceDefinition is deleted, invalidation of discovery cache may take up to 6 hours. If you don't want to wait, you might want to run "kubectl api-resources" to refresh the discovery cache.</p>
<p> Prints a table of the most important information about events. You can request events for a namespace, for all namespace, or filtered to only those pertaining to a specified resource.</p>
<td>If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace. </td>
7886
7860
</tr>
7887
7861
<tr>
7862
+
<td>allow-missing-template-keys</td>
7863
+
<td></td>
7864
+
<td>true</td>
7865
+
<td>If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. </td>
7866
+
</tr>
7867
+
<tr>
7888
7868
<td>chunk-size</td>
7889
7869
<td></td>
7890
7870
<td>500</td>
@@ -7897,6 +7877,36 @@ <h3 id="flags">Flags</h3>
7897
7877
<td>Filter events to only those pertaining to the specified resource. </td>
7898
7878
</tr>
7899
7879
<tr>
7880
+
<td>no-headers</td>
7881
+
<td></td>
7882
+
<td>false</td>
7883
+
<td>When using the default output format, don't print headers. </td>
<td>If true, keep the managedFields when printing objects in JSON or YAML format. </td>
7896
+
</tr>
7897
+
<tr>
7898
+
<td>template</td>
7899
+
<td></td>
7900
+
<td></td>
7901
+
<td>Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates <span>[</span><ahref="http://golang.org/pkg/text/template/#pkg-overview">http://golang.org/pkg/text/template/#pkg-overview</a><span>]</span>. </td>
0 commit comments