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

311
Views
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 answers
Answer question

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 Report

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 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!