Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

254
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda