<p>Is there a <code>Kubectl</code> command to figure out the following info about a <code>Pod</code>?</p>

<ol>
<li><p>The installed Linux distribution</p></li>
<li><p>The OS version</p></li>
</ol>

<p>Let's say you don't really have a good deal of info about the image with which a <code>Deployment</code> or a <code>Pod</code> has been created...</p>

mhyousefi
<p>Something as simple as this using exec will result the os details</p>

<pre><code>$ kubectl exec -it nginx1 -- /bin/bash -c "cat /etc/os-release;uname -r"
</code></pre>

<p>Should result this </p>

<pre><code>PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
4.4.0-169-generic
</code></pre>
