File tree Expand file tree Collapse file tree 6 files changed +10
-11
lines changed
java/com/example/endpoints
multiple-versions/src/main/appengine Expand file tree Collapse file tree 6 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ and [SDK](https://cloud.google.com/sdk/) configured.
71
71
```bash
72
72
GCLOUD_PROJECT=$(curl -s "http://metadata.google.internal/computeMetadata/v1/project/project-id" -H "Metadata-Flavor: Google")
73
73
SERVICE_NAME=hellogrpc.endpoints.${GCLOUD_PROJECT}.cloud.goog
74
- SERVICE_CONFIG_ID=<Your Config ID>
75
74
```
76
75
77
76
1. Pull your credentials to access Container Registry, and run your gRPC server container
@@ -91,7 +90,7 @@ and [SDK](https://cloud.google.com/sdk/) configured.
91
90
--link=grpc-hello:grpc-hello \
92
91
gcr.io/endpoints-release/endpoints-runtime:1 \
93
92
--service=${SERVICE_NAME} \
94
- --version=${SERVICE_CONFIG_ID} \
93
+ --rollout_strategy=managed \
95
94
--http2_port=9000 \
96
95
--backend=grpc://grpc-hello:50051
97
96
```
@@ -116,7 +115,7 @@ and [SDK](https://cloud.google.com/sdk/) configured.
116
115
gcloud container clusters create my-cluster
117
116
```
118
117
119
- 1. Edit `deployment.yaml`. Replace `SERVICE_NAME`, `SERVICE_CONFIG_ID`, and `GCLOUD_PROJECT` with your values.
118
+ 1. Edit `deployment.yaml`. Replace `SERVICE_NAME` and `GCLOUD_PROJECT` with your values.
120
119
121
120
1. Deploy to GKE
122
121
Original file line number Diff line number Diff line change 44
44
" --http2_port=9000" ,
45
45
" --backend=grpc://127.0.0.1:50051" ,
46
46
" --service=SERVICE_NAME" ,
47
- " --version=SERVICE_CONFIG_ID " ,
47
+ " --rollout_strategy=managed " ,
48
48
]
49
49
ports :
50
50
- containerPort : 9000
Original file line number Diff line number Diff line change 45
45
" --http_port=8081" ,
46
46
" --backend=127.0.0.1:8080" ,
47
47
" --service=SERVICE_NAME" ,
48
- " --version=SERVICE_CONFIG_ID " ,
48
+ " --rollout_strategy=managed " ,
49
49
]
50
50
# [END esp]
51
51
ports :
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ endpoints_api_service:
24
24
# The following values are to be replaced by information from the output of
25
25
# 'gcloud endpoints services deploy openapi-appengine.yaml' command.
26
26
name : ENDPOINTS-SERVICE-NAME
27
- config_id : ENDPOINTS-CONFIG-ID
27
+ rollout_strategy : managed
28
28
# [END configuration]
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2015 Google Inc.
3
- *
2
+ * Copyright 2017 Google Inc.
3
+ *
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
6
6
* You may obtain a copy of the License at
12
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
- */
15
+ */
16
16
17
17
18
18
package com .example .endpoints ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ handlers:
21
21
secure : always
22
22
23
23
endpoints_api_service :
24
- # The following values are to be replaced by information from the output of
24
+ # The following value is to be replaced by information from the output of
25
25
# 'gcloud endpoints services deploy openapi-v1.yaml openapi-v2.yaml' command.
26
26
name : ENDPOINTS-SERVICE-NAME
27
- config_id : ENDPOINTS-CONFIG-ID
27
+ rollout_strategy : managed
You can’t perform that action at this time.
0 commit comments