mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
kubectl describe nodes id shows node components version info.
This commit is contained in:
parent
5b9a6d47e8
commit
b8de2f00ce
@ -407,6 +407,14 @@ func describeNode(node *api.Node, pods []api.Pod, events *api.EventList) (string
|
|||||||
fmt.Fprintf(out, " %s:\t%s\n", resource, value.String())
|
fmt.Fprintf(out, " %s:\t%s\n", resource, value.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Fprintf(out, "Version:\n")
|
||||||
|
fmt.Fprintf(out, " Kernel Version:\t%s\n", node.Status.NodeInfo.KernelVersion)
|
||||||
|
fmt.Fprintf(out, " OS Image:\t%s\n", node.Status.NodeInfo.OsImage)
|
||||||
|
fmt.Fprintf(out, " Container Runtime Version:\t%s\n", node.Status.NodeInfo.ContainerRuntimeVersion)
|
||||||
|
fmt.Fprintf(out, " Kubelet Version:\t%s\n", node.Status.NodeInfo.KubeletVersion)
|
||||||
|
fmt.Fprintf(out, " Kube-Proxy Version:\t%s\n", node.Status.NodeInfo.KubeProxyVersion)
|
||||||
|
|
||||||
if len(node.Spec.PodCIDR) > 0 {
|
if len(node.Spec.PodCIDR) > 0 {
|
||||||
fmt.Fprintf(out, "PodCIDR:\t%s\n", node.Spec.PodCIDR)
|
fmt.Fprintf(out, "PodCIDR:\t%s\n", node.Spec.PodCIDR)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user