Skip to content

add api_config_anthos.yaml #3407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions endpoints/bookstore-grpc/api_config_anthos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
type: google.api.Service
config_version: 3

#
# Name of the service configuration.
#
name: API_NAME.endpoints.ESP_PROJECT_ID.cloud.goog

#
# API title to appear in the user interface (Google Cloud Console).
#
title: gRPC Bookstore API In Cloud Run Anthos
apis:
- name: endpoints.examples.bookstore.Bookstore

#
# Create a DNS record to map your service nameto IP address
#
endpoints:
- name: API_NAME.endpoints.ESP_PROJECT_ID.cloud.goog
target: INGRESS_IP

#
# Specify the backend address to route to
#
backend:
rules:
- selector: "*"
address: grpc://grpc-bookstore.default.svc.cluster.local
disable_auth: true

#
# API usage restrictions.
#
usage:
rules:
# ListShelves methods can be called without an API Key.
- selector: endpoints.examples.bookstore.Bookstore.ListShelves
allow_unregistered_calls: true