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

320
Visualizações
Using kubectl to wait until a pvc is bound

I wanna use kubectl wait command to wait until a pvc is bound.

I tried kubectl wait --for=condition=bound pvc/my-pvc-claim --timeout=2s with a pvc which is already bound, but it doesn't seem to work. This is the output error: timed out waiting for the condition on persistentvolumeclaims/my-pvc-claim.

I read kubectl wait documentation, but still can't understand which condition I should use. How can I accomplish that? Is there a more complete documentation explaining how to do that?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

You can use the following command:

while [[ $(kubectl get pvc myclaim -o 'jsonpath={..status.phase}') != "Bound" ]]; do echo "waiting for PVC status" && sleep 1; done
over 4 years ago · Santiago Trujillo Relatório

0

You may want to try using explain to see what conditions are possible to make sure you have the right one. Check here for an example of how you might use that.

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