Issue a rollout restart at all deployment
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Thu, 19 Sep 2019 11:11:30 +0200
changeset 120 164dcc5fee60
parent 119 32c11ddd4e75
child 121 7c0156c190cd
Issue a rollout restart at all deployment
Makefile
--- a/Makefile	Wed Sep 18 14:11:38 2019 +0200
+++ b/Makefile	Thu Sep 19 11:11:30 2019 +0200
@@ -23,6 +23,7 @@
 
 deploy: push
 	sed "s@r.intra.logilab.fr/intranet/fresh@$(IMAGE)@" deploy/deployment.yaml | kubectl -n $(NAMESPACE) apply -f -
+	kubectl -n $(NAMESPACE) rollout restart deployment/fresh deployment/fresh-scheduler
 	@echo "wait at max 3 minutes for deployment to be UP"
 	kubectl -n $(NAMESPACE) rollout status --timeout=180s deployment/fresh
 	kubectl -n $(NAMESPACE) rollout status --timeout=180s deployment/fresh-scheduler