kubectl wait
Wait for a specific condition on one or many resources kubectl reference
14 options Its page in the kubectl reference
Options
--all-namespaces, -AIf present, list the requested object(s) across all namespaces.--allSelect all resources in the namespace of the specified resource types--allow-missing-template-keysIf true, ignore any errors in templates when a field or map key is missing in the template.--field-selectorSelector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selector key1=value1,key2=value2).--filename, -fidentifying the resource.--forThe condition to wait on: [create|delete|condition=condition-name[=condition-value]|jsonpath='{JSONPath expression}'=[JSONPath value]].--help, -hhelp for wait--localIf true, annotation will NOT contact api-server but run locally.--output, -oOutput format.--recursive, -RProcess the directory used in -f, --filename recursively.--selector, -lSelector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--templateTemplate string or path to template file to use when -o=go-template, -o=go-template-file.--timeoutThe length of time to wait before giving up.