@@ -49,13 +49,10 @@ Cloud account and [SDK](https://cloud.google.com/sdk/) configured.
49
49
50
50
` ` ` bash
51
51
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
53
52
54
53
# Set your project ID as a variable to make commands easier:
55
54
GCLOUD_PROJECT=< Your Project ID>
56
55
57
- # Print out your Config ID again, in case you missed it:
58
- gcloud endpoints configs list --service hellogrpc.endpoints.${GCLOUD_PROJECT} .cloud.goog
59
56
` ` `
60
57
61
58
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.
95
92
```bash
96
93
GCLOUD_PROJECT=$(curl -s "http://metadata.google.internal/computeMetadata/v1/project/project-id" -H "Metadata-Flavor: Google")
97
94
SERVICE_NAME=hellogrpc.endpoints.${GCLOUD_PROJECT}.cloud.goog
98
- SERVICE_CONFIG_ID=<Your Config ID>
99
95
```
100
96
101
97
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.
114
110
--link=grpc-hello:grpc-hello \
115
111
gcr.io/endpoints-release/endpoints-runtime:1 \
116
112
--service=${SERVICE_NAME} \
117
- --version=${SERVICE_CONFIG_ID} \
113
+ --rollout_strategy=managed \
118
114
--http2_port=9000 \
119
115
--backend=grpc://grpc-hello:50051
120
116
```
@@ -146,19 +142,11 @@ Cloud account and [SDK](https://cloud.google.com/sdk/) configured.
146
142
gcloud container clusters create my-cluster --zone=us-central1-a
147
143
```
148
144
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:
151
146
152
147
`SERVICE_NAME` is equal to hellogrpc.endpoints.GCLOUD_PROJECT.cloud.goog,
153
148
replacing GCLOUD_PROJECT with your project ID.
154
149
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
-
162
150
1. Deploy to GKE:
163
151
164
152
```bash
0 commit comments