Skip to content

Files

Latest commit

 

History

History
 
 

nginx-gcp-meetup-demo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

GCP Meetup demo

Prerequisites

  1. Linux or OS X machine
  2. The following software should be installed on your machine:
  3. Docker
  4. gcloud
  5. make
  6. NGINX Plus subscription. You must also have an NGINX Plus license. If you don’t have one, you can sign up for a free 30-day trial.
  7. Put the licence key and the certificate of your subscription into the nginxplus folder

Setup

  1. Create a GCE project. Enable Compute Engine API for the project.

  2. Authenticate in the gcloud tool:

$ gcloud auth
  1. Setup your project and zone:
$ gcloud config set project <project-name>
$ gcloud config set compute/zone us-central1-f
  1. Create a StackDriver account for your project: https://console.cloud.google.com/monitoring?project=

  2. Create the nginxplus instance:

$ cd ../nginxplus
$ ./create-nginxplus-instance.sh
  1. Create the load gen instance:
$ cd ../load-generator
$ ./create-load-generator-instance.sh
  1. Create a kubernetes cluster in Google Compute Engine (GKE)

  2. Build the backend Docker image and upload it to the GKE registry

  3. Create the backend replication controller

  4. Build the knsync Docker image and upload it to the GKE registry

  5. Create the knsync rc

  6. Build the autoscaler Docker image and upload it to the GKE registry

  7. Create the autoscaler controller

  8. ssh into the loadgen machine and launch load.sh few times