@@ -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
61581. 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
101971. 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-
1621501. Deploy to GKE:
163151
164152 ```bash
0 commit comments