Difference between revisions of "Kubectl get"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 21: Line 21:
 
* <code>[[kubectl get secret]]</code>
 
* <code>[[kubectl get secret]]</code>
 
* <code>[[kubectl get services]]</code>
 
* <code>[[kubectl get services]]</code>
 +
* <code>[[kubectl get svc]]</code>
 
* <code>[[kubectl get]] [[pod]] NAME_POD --namespace=MY_TEST_NAMESPACE</code>
 
* <code>[[kubectl get]] [[pod]] NAME_POD --namespace=MY_TEST_NAMESPACE</code>
 
* <code>[[kubectl get gateway]]</code>
 
* <code>[[kubectl get gateway]]</code>
Line 32: Line 33:
 
  Use "kubectl explain <resource>" for a detailed description of that resource (e.g. kubectl explain pods).
 
  Use "kubectl explain <resource>" for a detailed description of that resource (e.g. kubectl explain pods).
 
  See 'kubectl get -h' for help and examples
 
  See 'kubectl get -h' for help and examples
 
  
 
== Related terms ==
 
== Related terms ==

Revision as of 09:39, 18 April 2021

kubectl get


Examples

kubectl get
You must specify the type of resource to get. Use "kubectl api-resources" for a complete list of supported resources.

error: Required resource not specified.
Use "kubectl explain <resource>" for a detailed description of that resource (e.g. kubectl explain pods).
See 'kubectl get -h' for help and examples

Related terms


See also

  • https://stackoverflow.com/a/45046340/9269906
  • Advertising: