Use kubectl rollout status instead of kubectl wait
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Tue, 17 Sep 2019 15:58:04 +0200
changeset 116 c1958105395b
parent 115 8affb087cb5d
child 117 1dcab5b4263f
Use kubectl rollout status instead of kubectl wait
Makefile
--- a/Makefile	Tue Aug 06 18:48:32 2019 +0200
+++ b/Makefile	Tue Sep 17 15:58:04 2019 +0200
@@ -24,6 +24,7 @@
 deploy: push
 	sed "s@hub.extranet.logilab.fr/logilab/fresh@$(IMAGE)@" deploy/deployment.yaml | kubectl -n $(NAMESPACE) apply -f -
 	@echo "wait at max 3 minutes for deployment to be UP"
-	kubectl -n $(NAMESPACE) wait --for=condition=available --timeout=180s deployment/fresh deployment/fresh-scheduler
+	kubectl -n $(NAMESPACE) rollout status --timeout=180s deployment/fresh
+	kubectl -n $(NAMESPACE) rollout status --timeout=180s deployment/fresh-scheduler
 
 .PHONY: all build push run dev deploy