mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Add capacity information to 'kubectl describe minion'
This commit is contained in:
parent
4ef76aba5a
commit
c63f4635a4
@ -323,6 +323,12 @@ func (d *MinionDescriber) Describe(namespace, name string) (string, error) {
|
|||||||
c.Message)
|
c.Message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if len(minion.Spec.Capacity) > 0 {
|
||||||
|
fmt.Fprintf(out, "Capacity:\n")
|
||||||
|
for resource, value := range minion.Spec.Capacity {
|
||||||
|
fmt.Fprintf(out, " %s:\t%s\n", resource, value.String())
|
||||||
|
}
|
||||||
|
}
|
||||||
fmt.Fprintf(out, "Pods:\t(%d in total)\n", len(pods))
|
fmt.Fprintf(out, "Pods:\t(%d in total)\n", len(pods))
|
||||||
for _, pod := range pods {
|
for _, pod := range pods {
|
||||||
if pod.Status.Host != name {
|
if pod.Status.Host != name {
|
||||||
|
Loading…
Reference in New Issue
Block a user