Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 986 Bytes

shed-kubectl-exec-bash.md

File metadata and controls

37 lines (26 loc) · 986 Bytes

shed-kubectl-exec-bash

Run bash in kubernetes resource via kubectl exec with context and/or namespace from current KubeConfig.

SYNOPSIS

shed-kubectl-exec-bash (pod | type/name) [container]
shed kubectl-exec-bash (pod | type/name) [container]
k-bash (pod | type/name) [container]

EXAMPLES

$ shed-use T; shed-kubectl-exec-bash pod/pod-abc
+ kubectl --context kube-test-1 exec -it pod/pod-abc -- bash
...

$ shed-use D; shed-kubectl-exec-bash pod/pod-abc
+ kubectl --context kube-dev-1 --namespace ns-application exec -it pod/pod-abc -- bash
...

$ shed-kubectl-exec-bash pod/pod-abc container-1
+ kubectl --context kube-dev-1 --namespace ns-application exec -it pod/pod-abc -c container-1 -- bash
...

SCREENSHOTS

shed-kubectl-exec-bash

SEE ALSO