add k_get_containers_of_pod

This commit is contained in:
hophacker 2021-01-14 20:22:13 +08:00
parent 451425d6fe
commit 76f6299a56

View File

@ -154,3 +154,6 @@ function kubectl() {
function k_force_delete_pod () {
k delete pod $1 --grace-period=0 --force
}
function k_get_containers_of_pod {
k get pods $1 -o jsonpath='{.spec.containers[*].name}*'
}