Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

244
Views
How do i view volumes attached to a container in a pod and write some data into it

I want to write some data into volume i.e one of the directory which is residing in this volume, I can exec a pod, but i am not aware how to check the attached volume and write data to it.

I can find the volumes and mount point using:

kubectl describe pods pod-name
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can get the volumes mounted on the pod using the output of kubectl describe pod which has the Mounts section in each container's spec.

An example from the docs:

Mounts:
  /var/run/secrets/kubernetes.io/serviceaccount from default-token-5kdvl (ro)`

You can then exec into the pod using kubectl exec and the cd to the directory you want to write data to.

Another option is to use kubectl copy command and you could read a related answer of mine here.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!