<p>In kubectl, both <code>describe</code> and <code>get -o &lt;format&gt;</code> can be used to get the details of a resource, I'm wondering what's the difference between the two? why does <code>describe</code> even exist if <code>get</code> can do the same thing and more?</p>

Dagang
<ul>
<li><p><code>kubectl get</code> shows tables by default. (You can view/visualize large no of objects easily)</p>
</li>
<li><p><code>kubectl describe</code> shows the detailed description. (Better for a single object)</p>
</li>
<li><p><code>kubectl describe</code> is more flattened, has lesser data and easier to read than the full object data given by <code>kubectl get -o yaml</code></p>
</li>
</ul>
<br/>
<br/>
<p>Help output for reference.</p>
<p><code>kubectl describe -h</code></p>
<pre><code>Show details of a specific resource or group of resources

 Print a detailed description of the selected resources, including related resources such as events or controllers. You
may select a single object by name, all objects of that type, provide a name prefix, or label selector. For example:

  $ kubectl describe TYPE NAME_PREFIX

 will first check for an exact match on TYPE and NAME_PREFIX. If no such resource exists, it will output details for
every resource that has a name prefixed with NAME_PREFIX.

Use &quot;kubectl api-resources&quot; for a complete list of supported resources.
</code></pre>
<p><code>kubectl get -h</code></p>
<pre><code>Display one or many resources

 Prints a table of the most important information about the specified resources. You can filter the list using a label
selector and the --selector flag. If the desired resource type is namespaced you will only see results in your current
namespace unless you pass --all-namespaces.

 Uninitialized objects are not shown unless --include-uninitialized is passed.

 By specifying the output as 'template' and providing a Go template as the value of the --template flag, you can filter
the attributes of the fetched resources.

Use &quot;kubectl api-resources&quot; for a complete list of supported resources.
</code></pre>
