Is there any possible to access variables which is inside the kubernetes container

4/17/2020

I need to access the variable which is inside the kubernetes pod without login to the pod container

-- HARINI NATHAN
kubernetes

1 Answer

4/17/2020

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)
      ```
-- Shubham Singh
Source: StackOverflow