Skip to content

Commit 2a15b5e

Browse files
ericschmidtatworkengelke
authored andcommitted
Memorystore: Add config for GAE standard deployment (GoogleCloudPlatform#2362)
* Add config for GAE standard deployment * Edit region tags
1 parent f755338 commit 2a15b5e

2 files changed

Lines changed: 31 additions & 8 deletions

File tree

memorystore/redis/app.yaml renamed to memorystore/redis/gae_flex_deployment/app.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,20 @@
1010
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
13-
14-
# [START memorystore_app_yaml]
13+
# [START memorystore_app_yaml_flex]
1514
runtime: python
1615
env: flex
1716
entrypoint: gunicorn -b :$PORT main:app
1817

1918
runtime_config:
2019
python_version: 3
2120

22-
# update with Redis instance host IP, port
21+
# Update with Redis instance IP and port
2322
env_variables:
24-
REDISHOST: redis-ip
25-
REDISPORT: 6379
23+
REDISHOST: '<REDIS_IP>'
24+
REDISPORT: '6379'
2625

27-
# update with Redis instance network name
26+
# Update with Redis instance network name
2827
network:
2928
name: default
30-
31-
#[END memorystore_app_yaml]
29+
#[END memorystore_app_yaml_flex]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2018 Google Inc.
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
# [START memorystore_app_yaml_standard]
14+
runtime: python37
15+
entrypoint: gunicorn -b :$PORT main:app
16+
17+
# Update with Redis instance details
18+
env_variables:
19+
REDISHOST: '<REDIS_IP>'
20+
REDISPORT: '6379'
21+
22+
# Update with Serverless VPC Access connector details
23+
vpc_access_connector:
24+
name: 'projects/<PROJECT_ID>/locations/<REGION>/connectors/<CONNECTOR_NAME>'
25+
# [END memorystore_app_yaml_standard]

0 commit comments

Comments
 (0)