Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

250
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda