Skip to content
Thierry Lam edited this page Dec 13, 2023 · 3 revisions
  1. How to access postgres running on a pod with kubectl?

     kubectl exec -it podname -- env PGPASSWORD=yourpgpassword psql -h yourpghostname -U yourpgusername yourpgdb
    
  2. Copy file from a pod to your local

     kubectl cp podname:yourfile.txt yourfile.txt
    
Clone this wiki locally