Difference between revisions of "Kubectl exec"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 2: Line 2:
 
* <code>[[kubectl]] exec -it redis -- /bin/bash</code> (Get a shell to a running container (https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/))
 
* <code>[[kubectl]] exec -it redis -- /bin/bash</code> (Get a shell to a running container (https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/))
  
 +
 +
kubectl exec my_redis_pod -c my_redis_container /sbin/killall5
 +
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
 +
command terminated with exit code 2
  
  

Revision as of 17:19, 17 July 2021


kubectl exec my_redis_pod -c my_redis_container /sbin/killall5
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
command terminated with exit code 2


Related commands

Activities

See also

Advertising: