Display pod node selectors with kubectl describe.

This commit is contained in:
Avesh Agarwal 2016-11-07 17:49:40 -05:00
parent aa8a03ef07
commit 588ad30d10

View File

@ -540,6 +540,7 @@ func describePod(pod *api.Pod, events *api.EventList) (string, error) {
}
describeVolumes(pod.Spec.Volumes, w, "")
w.Write(LEVEL_0, "QoS Class:\t%s\n", qos.InternalGetPodQOS(pod))
printLabelsMultiline(w, "Node-Selectors", pod.Spec.NodeSelector)
printTolerationsInAnnotationMultiline(w, "Tolerations", pod.Annotations)
if events != nil {
DescribeEvents(events, w)