Difference between revisions of "Kubectl get pod"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 6: Line 6:
 
  redis    1/1      Running  0          13s
 
  redis    1/1      Running  0          13s
  
  [[kubectl get pod]] PODNAME -n NAMESPACE -o yaml | kubectl replace --force -f -<ref>https://stackoverflow.com/a/45046340/9269906</ref>
+
  kubectl get pod PODNAME -n NAMESPACE -o yaml | kubectl replace --force -f -<ref>https://stackoverflow.com/a/45046340/9269906</ref>
  
  

Revision as of 11:44, 15 May 2020


kubectl get pod redis --watch
NAME      READY     STATUS    RESTARTS   AGE
redis     1/1       Running   0          13s
kubectl get pod PODNAME -n NAMESPACE -o yaml | kubectl replace --force -f -[1]


See also

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