-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version updates, and locust example task refresh (#38)
add script to start web application proxy instance add source code embed tags for docs updsate README, remove content and encourage readers to visit guide split server into ClusterIP and LoadBalancer for different ports
1 parent
3058106
commit bb32023
Showing
12 changed files
with
127 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
certifi==2019.3.9 | ||
chardet==3.0.4 | ||
Click==7.0 | ||
Flask==1.0.2 | ||
gevent==1.4.0 | ||
greenlet==0.4.15 | ||
idna==2.8 | ||
itsdangerous==1.1.0 | ||
Jinja2==2.10.1 | ||
locustio==0.11.0 | ||
MarkupSafe==1.1.1 | ||
msgpack==0.6.1 | ||
Brotli==1.0.9 | ||
certifi==2021.10.8 | ||
chardet==4.0.0 | ||
charset-normalizer==2.0.12 | ||
click==8.1.2 | ||
ConfigArgParse==1.5.3 | ||
Flask==2.1.1 | ||
Flask-BasicAuth==0.2.0 | ||
Flask-Cors==3.0.10 | ||
gevent==21.12.0 | ||
geventhttpclient==1.5.3 | ||
greenlet==1.1.2 | ||
idna==3.3 | ||
importlib-metadata==4.11.3 | ||
itsdangerous==2.1.2 | ||
Jinja2==3.0.3 | ||
locust==2.8.6 | ||
MarkupSafe==2.1.1 | ||
msgpack==1.0.3 | ||
msgpack-python==0.5.6 | ||
pyzmq==18.0.1 | ||
requests==2.21.0 | ||
six==1.12.0 | ||
urllib3==1.24.2 | ||
Werkzeug==0.15.1 | ||
psutil==5.9.0 | ||
pyzmq==22.3.0 | ||
requests==2.27.1 | ||
roundrobin==0.0.2 | ||
six==1.16.0 | ||
typing_extensions==4.1.1 | ||
urllib3==1.26.9 | ||
Werkzeug==2.1.1 | ||
zipp==3.8.0 | ||
zope.event==4.5.0 | ||
zope.interface==5.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This file specifies files that are *not* uploaded to Google Cloud Platform | ||
# using gcloud. It follows the same syntax as .gitignore, with the addition of | ||
# "#!include" directives (which insert the entries of the given .gitignore-style | ||
# file at that point). | ||
# | ||
# For more information, run: | ||
# $ gcloud topic gcloudignore | ||
# | ||
.gcloudignore | ||
# If you would like to upload your .git directory, .gitignore file or files | ||
# from your .gitignore file, remove the corresponding line | ||
# below: | ||
.git | ||
.gitignore | ||
|
||
# Python pycache: | ||
__pycache__/ | ||
# Ignored by the build system | ||
/setup.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright 2022 Google Inc. All rights reserved. | ||
# | ||
# 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 | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# 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. | ||
|
||
set -e | ||
|
||
gcloud compute instances create-with-container ${PROXY_VM} \ | ||
--zone ${ZONE} \ | ||
--container-image gcr.io/cloud-marketplace/google/nginx1:latest \ | ||
--container-mount-host-path=host-path=/tmp/server.conf,mount-path=/etc/nginx/conf.d/default.conf \ | ||
--metadata=startup-script="#! /bin/bash | ||
cat <<EOF > /tmp/server.conf | ||
server { | ||
listen 8089; | ||
location / { | ||
proxy_pass http://${INTERNAL_LB_IP}:8089; | ||
} | ||
} | ||
EOF" | ||
|
||
echo "To open an SSH tunnel between your workstation and this proxy instance, use this command:" | ||
echo " gcloud compute ssh --zone ${ZONE} ${PROXY_VM} -- -N -L 8089:localhost:8089" |