k_get_instance

This commit is contained in:
hophacker 2020-12-07 00:30:02 +08:00
parent 086eaabc27
commit ccf3ee780a

View File

@ -470,3 +470,6 @@ function gcm {
function k_delete_evicted {
k delete pod `k get pods | grep Evicted | awk '{print $1}'`
}
function k_get_instance {
k get deployment -o jsonpath="{.items[*].metadata.labels['app\.kubernetes\.io\/instance']}" | tr " " "\n"
}