<p>I need to access the variable which is inside the kubernetes pod without login to the pod container</p>

<p>If the variables are exposed via Environment you can try using </p>

<pre class="lang-sh prettyprint-override"><code>kubectl describe po env_pod | grep -A 10 Environment                                                        
    Environment:
      DB_URL:                       x.x.x.x
      LC_TIMEOUT:                   10
      SNS_QUEUE_REGION:             us-west-2
    Mounts:
      /var/log from shared-log-storage (rw)
      ```
</code></pre>
