Skip to content

Commit

Permalink
Change to endpoints managed rollout (#1054)
Browse files Browse the repository at this point in the history
* [DO NOT MERGE] Change to endpoints managed rollout

* Fixing lint issues\

* fixing copyright in endpoints

* fix copyright on endpoints

* CR comments
  • Loading branch information
Simon Zeltser authored Apr 4, 2018
1 parent f87b52b commit c5d7c11
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions endpoints/getting-started-grpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ and [SDK](https://cloud.google.com/sdk/) configured.
```bash
GCLOUD_PROJECT=$(curl -s "http://metadata.google.internal/computeMetadata/v1/project/project-id" -H "Metadata-Flavor: Google")
SERVICE_NAME=hellogrpc.endpoints.${GCLOUD_PROJECT}.cloud.goog
SERVICE_CONFIG_ID=<Your Config ID>
```
1. Pull your credentials to access Container Registry, and run your gRPC server container
Expand All @@ -91,7 +90,7 @@ and [SDK](https://cloud.google.com/sdk/) configured.
--link=grpc-hello:grpc-hello \
gcr.io/endpoints-release/endpoints-runtime:1 \
--service=${SERVICE_NAME} \
--version=${SERVICE_CONFIG_ID} \
--rollout_strategy=managed \
--http2_port=9000 \
--backend=grpc://grpc-hello:50051
```
Expand All @@ -116,7 +115,7 @@ and [SDK](https://cloud.google.com/sdk/) configured.
gcloud container clusters create my-cluster
```
1. Edit `deployment.yaml`. Replace `SERVICE_NAME`, `SERVICE_CONFIG_ID`, and `GCLOUD_PROJECT` with your values.
1. Edit `deployment.yaml`. Replace `SERVICE_NAME` and `GCLOUD_PROJECT` with your values.
1. Deploy to GKE
Expand Down
2 changes: 1 addition & 1 deletion endpoints/getting-started-grpc/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
"--http2_port=9000",
"--backend=grpc://127.0.0.1:50051",
"--service=SERVICE_NAME",
"--version=SERVICE_CONFIG_ID",
"--rollout_strategy=managed",
]
ports:
- containerPort: 9000
Expand Down
2 changes: 1 addition & 1 deletion endpoints/getting-started/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
"--http_port=8081",
"--backend=127.0.0.1:8080",
"--service=SERVICE_NAME",
"--version=SERVICE_CONFIG_ID",
"--rollout_strategy=managed",
]
# [END esp]
ports:
Expand Down
2 changes: 1 addition & 1 deletion endpoints/getting-started/src/main/appengine/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ endpoints_api_service:
# The following values are to be replaced by information from the output of
# 'gcloud endpoints services deploy openapi-appengine.yaml' command.
name: ENDPOINTS-SERVICE-NAME
config_id: ENDPOINTS-CONFIG-ID
rollout_strategy: managed
# [END configuration]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright 2015 Google Inc.
*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -12,7 +12,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
*/


package com.example.endpoints;
Expand Down
4 changes: 2 additions & 2 deletions endpoints/multiple-versions/src/main/appengine/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ handlers:
secure: always

endpoints_api_service:
# The following values are to be replaced by information from the output of
# The following value is to be replaced by information from the output of
# 'gcloud endpoints services deploy openapi-v1.yaml openapi-v2.yaml' command.
name: ENDPOINTS-SERVICE-NAME
config_id: ENDPOINTS-CONFIG-ID
rollout_strategy: managed

0 comments on commit c5d7c11

Please sign in to comment.