I need to access the variable which is inside the kubernetes pod without login to the pod container
If the variables are exposed via Environment you can try using
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)
      ```