committed by
Kubernetes Prow Robot
parent
97297af5ef
commit
a17f259b8d
@@ -158,6 +158,10 @@ kubectl get services --sort-by=.metadata.name # List Services Sorted by Name
|
|||||||
# List pods Sorted by Restart Count
|
# List pods Sorted by Restart Count
|
||||||
kubectl get pods --sort-by='.status.containerStatuses[0].restartCount'
|
kubectl get pods --sort-by='.status.containerStatuses[0].restartCount'
|
||||||
|
|
||||||
|
# List pods in test namespace sorted by capacity
|
||||||
|
|
||||||
|
kubectl get pods -n test --sort-by=.spec.capacity.storage
|
||||||
|
|
||||||
# Get the version label of all pods with label app=cassandra
|
# Get the version label of all pods with label app=cassandra
|
||||||
kubectl get pods --selector=app=cassandra -o \
|
kubectl get pods --selector=app=cassandra -o \
|
||||||
jsonpath='{.items[*].metadata.labels.version}'
|
jsonpath='{.items[*].metadata.labels.version}'
|
||||||
|
|||||||
Reference in New Issue
Block a user