Skip to content

Commit 6630946

Browse files
Simon ZeltserJon Wayne Parrott
Simon Zeltser
authored and
Jon Wayne Parrott
committed
Change to endpoints managed rollout (GoogleCloudPlatform#1387)
1 parent 7f9c006 commit 6630946

File tree

5 files changed

+6
-18
lines changed

5 files changed

+6
-18
lines changed

endpoints/getting-started-grpc/README.md

+2-14
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,10 @@ Cloud account and [SDK](https://cloud.google.com/sdk/) configured.
4949

5050
```bash
5151
gcloud endpoints services deploy api_descriptor.pb api_config.yaml
52-
# The Config ID should be printed out, looks like: 2017-02-01r0, remember this
5352
5453
# Set your project ID as a variable to make commands easier:
5554
GCLOUD_PROJECT=<Your Project ID>
5655
57-
# Print out your Config ID again, in case you missed it:
58-
gcloud endpoints configs list --service hellogrpc.endpoints.${GCLOUD_PROJECT}.cloud.goog
5956
```
6057

6158
1. Also get an API key from the Console's API Manager for use in the
@@ -95,7 +92,6 @@ Cloud account and [SDK](https://cloud.google.com/sdk/) configured.
9592
```bash
9693
GCLOUD_PROJECT=$(curl -s "http://metadata.google.internal/computeMetadata/v1/project/project-id" -H "Metadata-Flavor: Google")
9794
SERVICE_NAME=hellogrpc.endpoints.${GCLOUD_PROJECT}.cloud.goog
98-
SERVICE_CONFIG_ID=<Your Config ID>
9995
```
10096
10197
1. Pull your credentials to access Container Registry, and run your gRPC server
@@ -114,7 +110,7 @@ Cloud account and [SDK](https://cloud.google.com/sdk/) configured.
114110
--link=grpc-hello:grpc-hello \
115111
gcr.io/endpoints-release/endpoints-runtime:1 \
116112
--service=${SERVICE_NAME} \
117-
--version=${SERVICE_CONFIG_ID} \
113+
--rollout_strategy=managed \
118114
--http2_port=9000 \
119115
--backend=grpc://grpc-hello:50051
120116
```
@@ -146,19 +142,11 @@ Cloud account and [SDK](https://cloud.google.com/sdk/) configured.
146142
gcloud container clusters create my-cluster --zone=us-central1-a
147143
```
148144
149-
1. Edit `deployment.yaml`. Replace `SERVICE_NAME`, `SERVICE_CONFIG_ID`,
150-
and `GCLOUD_PROJECT` with your values:
145+
1. Edit `deployment.yaml`. Replace `SERVICE_NAME` and `GCLOUD_PROJECT` with your values:
151146
152147
`SERVICE_NAME` is equal to hellogrpc.endpoints.GCLOUD_PROJECT.cloud.goog,
153148
replacing GCLOUD_PROJECT with your project ID.
154149
155-
`SERVICE_CONFIG_ID` can be found by running the following command, replacing
156-
GCLOUD_PROJECT with your project ID.
157-
158-
```bash
159-
gcloud endpoints configs list --service hellogrpc.endpoints.GCLOUD_PROJECT.cloud.goog
160-
```
161-
162150
1. Deploy to GKE:
163151
164152
```bash

endpoints/getting-started-grpc/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
"--http2_port=9000",
4545
"--backend=grpc://127.0.0.1:50051",
4646
"--service=SERVICE_NAME",
47-
"--version=SERVICE_CONFIG_ID",
47+
"--rollout_strategy=managed",
4848
]
4949
ports:
5050
- containerPort: 9000

endpoints/getting-started/app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ endpoints_api_service:
1010
# The following values are to be replaced by information from the output of
1111
# 'gcloud endpoints services deploy openapi-appengine.yaml' command.
1212
name: ENDPOINTS-SERVICE-NAME
13-
config_id: ENDPOINTS-CONFIG-ID
13+
rollout_strategy: managed
1414
# [END configuration]

endpoints/getting-started/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
"--http_port=8081",
4646
"--backend=127.0.0.1:8080",
4747
"--service=SERVICE_NAME",
48-
"--version=SERVICE_CONFIG_ID",
48+
"--rollout_strategy=managed",
4949
]
5050
# [END esp]
5151
ports:

endpoints/kubernetes/grpc-bookstore.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
args: [
4545
"--http2_port=9000",
4646
"--service=SERVICE_NAME",
47-
"--version=SERVICE_CONFIG_ID",
47+
"--rollout_strategy=managed",
4848
"--backend=grpc://127.0.0.1:8000"
4949
]
5050
ports:

0 commit comments

Comments
 (0)