Skip to content

Commit

Permalink
added kubectl command to list images and containers
Browse files Browse the repository at this point in the history
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
  • Loading branch information
ivankatliarchuk committed Sep 5, 2024
1 parent e7dedb2 commit 903e173
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/aliase/kube
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ alias k.pod-nod='kubectl get pod -o=custom-columns=NODE:.spec.nodeName,NAME:.met
alias k.pod-nodn='kubectl get pod -o=custom-columns=NODE:.spec.nodeName,NAME:.metadata.name'
alias k.pod-nodns='kubectl get pod -o=custom-columns=NODE:.spec.nodeName,NAME:.metadata.name --namespace ' # +namespace
alias k.pod-stnod='kubectl get pod -o=custom-columns=NAME:.metadata.name,STATUS:.status.phase,NODE:.spec.nodeName --all-namespaces'
alias k.pod-image="k get pods -o 'custom-columns=POD:metadata.name,IMAGE:spec.containers[*].image'"

# get burstable pods in all namespaces
alias k.burst='k get pods -A --output=custom-columns=NAME:.metadata.name,NAMESPACE:.metadata.namespace,QOS-CLASS:.status.qosClass | grep Burstable'
_kctl_pods_custom_columns() {
Expand Down

0 comments on commit 903e173

Please sign in to comment.