databricks / click

The "Command Line Interactive Controller for Kubernetes"
Apache License 2.0
1.49k stars 84 forks source link

[enhancement] print out the node for pods command #52

Closed omerlin closed 2 years ago

omerlin commented 6 years ago

Hello, when vizualizing pods, we have the options to see labels or annotations and also to filter with regexp. This is good. But i think the column "node" is missing in the command "pods" because it's important to see if an affinity / anti-affinity rule is respected directly. This is what we have with the command : kubectl get pods -o wide

cheers

nicklan commented 6 years ago

This is a good idea, I'll look into adding it.

BTW, there is a sort of "secret" feature in that, if you select a node (i.e. run nodes then pick one) and then run pods you'll only get the pods on that node (and in the selected namespace if set). I need to find a better way to do that though, since that's not at all discover-able.

omerlin commented 6 years ago

Hi Thanks a lot for taking into this "small" but useful update. I have tested the "secret" features and it works well - even better than the kubelet command (in 1.7.2 ) as we see the real status (terminated for instance instead of unknown for kubelet) cheers

nicklan commented 2 years ago

this is supported now (see help pods)