Difference between revisions of "Kubectl get"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
* <code>[[kubectl get nodes]]</code>
 
* <code>[[kubectl get nodes]]</code>
 
* <code>kubectl get pods</code>
 
* <code>kubectl get pods</code>
* <code>kubectl get deployment</code>
+
* <code>[[kubectl get deployment]]</code>
 
* <code>kubectl get pod PODNAME -n NAMESPACE -o yaml | kubectl replace --force -f -</code><ref>https://stackoverflow.com/a/45046340/9269906</ref>
 
* <code>kubectl get pod PODNAME -n NAMESPACE -o yaml | kubectl replace --force -f -</code><ref>https://stackoverflow.com/a/45046340/9269906</ref>
 
* <code>[[kubectl get]] [[pod]] NAME_POD --namespace=MY_TEST_NAMESPACE</code>
 
* <code>[[kubectl get]] [[pod]] NAME_POD --namespace=MY_TEST_NAMESPACE</code>

Revision as of 19:57, 6 January 2020


kubectl get pod redis --watch
NAME      READY     STATUS    RESTARTS   AGE
redis     1/1       Running   0          13s


See also

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