add cmd kexec

This commit is contained in:
hophacker 2019-03-21 08:44:53 +08:00
parent 00576e1973
commit c9a845849e

View File

@ -153,3 +153,8 @@ function gitcopy() {
function h() {
helm $* --tls
}
function kexec {
POD_NAME=`k get pods | grep wechat | awk '{print $1}'`
shift 1
kubectl exec -it $POD_NAME $@
}