![Forrest logo](/images/logo.png)
kubectl-describe:tldr:bd141
kubectl-describe: Show details of nodes in a namespace.
$ kubectl describe nodes -n ${namespace}
try on your machine
The command kubectl describe nodes -n ${namespace}
is used to obtain detailed information about the nodes in a Kubernetes cluster within a specific namespace.
Here's a breakdown of the command and its components:
kubectl
: It is the command-line interface (CLI) tool for interacting with a Kubernetes cluster.describe
: A command used to display detailed information about a Kubernetes resource.nodes
: Specifies the resource type to describe, which in this case is the nodes.-n ${namespace}
: It includes the-n
flag followed by the${namespace}
variable, which specifies the namespace in which the nodes are located. The${namespace}
should be replaced with the actual namespace name.
When you execute this command, you will get a detailed description of the nodes in the specified namespace. The description typically includes information such as the node name, node conditions (e.g., Ready), system specifications (e.g., CPU, memory), Kubernetes labels, and more.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.