File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
container_engine/django_tutorial Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,20 +6,20 @@ all: deploy
66.PHONY : create-cluster
77create-cluster :
88 gcloud container clusters create polls \
9- --scope " https://www.googleapis.com/auth/userinfo.email" ," cloud-platform"
9+ --scopes " https://www.googleapis.com/auth/userinfo.email" ," cloud-platform"
1010
1111.PHONY : create-bucket
1212create-bucket :
1313 gsutil mb gs://$(GCLOUD_PROJECT )
14- gsutil defacl set public-read gs ://$(GCLOUD_PROJECT )
14+ gsutil defacl set public-read gs://$(GCLOUD_PROJECT )
1515
1616.PHONY : build
1717build :
1818 docker build -t gcr.io/$(GCLOUD_PROJECT ) /polls .
1919
2020.PHONY : push
2121push : build
22- gcloud docker push gcr.io/$(GCLOUD_PROJECT ) /polls
22+ gcloud docker push -- gcr.io/$(GCLOUD_PROJECT ) /polls
2323
2424.PHONY : template
2525template :
@@ -31,7 +31,7 @@ deploy: push template
3131
3232.PHONY : update
3333update :
34- kubectl rolling-update polls --image=gcr.io/ ${GCLOUD_PROJECT} /polls
34+ kubectl patch deployment polls -p " { \" spec \" :{ \" template \" :{ \" metadata \" :{ \" labels \" :{ \" date \" : \" ` date + ' %s ' ` \" }}}}} "
3535
3636.PHONY : delete
3737delete :
You can’t perform that action at this time.
0 commit comments