File tree 1 file changed +4
-4
lines changed
container_engine/django_tutorial
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,20 +6,20 @@ all: deploy
6
6
.PHONY : create-cluster
7
7
create-cluster :
8
8
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"
10
10
11
11
.PHONY : create-bucket
12
12
create-bucket :
13
13
gsutil mb gs://$(GCLOUD_PROJECT )
14
- gsutil defacl set public-read gs ://$(GCLOUD_PROJECT )
14
+ gsutil defacl set public-read gs://$(GCLOUD_PROJECT )
15
15
16
16
.PHONY : build
17
17
build :
18
18
docker build -t gcr.io/$(GCLOUD_PROJECT ) /polls .
19
19
20
20
.PHONY : push
21
21
push : build
22
- gcloud docker push gcr.io/$(GCLOUD_PROJECT ) /polls
22
+ gcloud docker push -- gcr.io/$(GCLOUD_PROJECT ) /polls
23
23
24
24
.PHONY : template
25
25
template :
@@ -31,7 +31,7 @@ deploy: push template
31
31
32
32
.PHONY : update
33
33
update :
34
- kubectl rolling-update polls --image=gcr.io/ ${GCLOUD_PROJECT} /polls
34
+ kubectl patch deployment polls -p " { \" spec \" :{ \" template \" :{ \" metadata \" :{ \" labels \" :{ \" date \" : \" ` date + ' %s ' ` \" }}}}} "
35
35
36
36
.PHONY : delete
37
37
delete :
You can’t perform that action at this time.
0 commit comments