New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to wait for all completed when use kubectl apply -f xxx.yaml? #72817

Open
veezhang opened this Issue Jan 11, 2019 · 6 comments

Comments

Projects
None yet
5 participants
@veezhang
Copy link

veezhang commented Jan 11, 2019

How to wait for all completed when use kubectl apply -f xxx.yaml?
Not check it use kubectl get one by one.

@k8s-ci-robot

This comment has been minimized.

Copy link
Contributor

k8s-ci-robot commented Jan 11, 2019

@veezhang: There are no sig labels on this issue. Please add a sig label by either:

  1. mentioning a sig: @kubernetes/sig-<group-name>-<group-suffix>
    e.g., @kubernetes/sig-contributor-experience-<group-suffix> to notify the contributor experience sig, OR

  2. specifying the label manually: /sig <group-name>
    e.g., /sig scalability to apply the sig/scalability label

Note: Method 1 will trigger an email to the group. See the group list.
The <group-suffix> in method 1 has to be replaced with one of these: bugs, feature-requests, pr-reviews, test-failures, proposals.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@liggitt

This comment has been minimized.

Copy link
Member

liggitt commented Jan 12, 2019

what do you mean by completed? apply returns when all objects have been submitted to the server

@veezhang

This comment has been minimized.

Copy link

veezhang commented Jan 12, 2019

all objects have been submitted to the server, and the server have processed.
such as, the pod status has been Running.

@cofyc

This comment has been minimized.

Copy link
Contributor

cofyc commented Jan 15, 2019

one way is to use kubectl get -f <resource.yaml> --watch to watch changes after applying successfully

@Shnatsel

This comment has been minimized.

Copy link

Shnatsel commented Jan 21, 2019

/triage support

@Shnatsel

This comment has been minimized.

Copy link

Shnatsel commented Jan 21, 2019

You're looking for kubectl wait

Here's the documentation: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#wait

In the future, please ask questions on StackOverflow where they are typically answered much sooner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment