diff --git a/zsh/functions.zsh b/zsh/functions.zsh index bef9450..9335576 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -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" +}