Skip to content

Commit

Permalink
modifications to README for GKE-Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
nparks-owasp authored and nbaars committed May 21, 2017
1 parent 2729486 commit 13a2661
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions platformQuickStarts/GCP/GKE-Docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ To be Successfull with this Quickstart

1. You have a Google Cloud Platform account and have enough access rights to create Compute Engine and Container Engine Resources
2. You know how to `git clone`
3. You have the gcloud SDK install and initialized somewhere ( Or just use the Google Cloud Shell)
3. You have the gcloud SDK install and initialized somewhere ( do not use the google cloud shell)


Remeber to perform a 'gcloud auth login' before using the gcloud commands below.



## Create Kubernettes Cluster

Using the cloud console the default settings will suffice. The following is the commandline you would use to create the cluster using the gcloud command. For this QuickStart the cluster name used is `owaspbasiccluster`. The `PROJECTNAME` is whatever your project is. The `REGION` is a region near you.
You can create a cluster using the Google Cloud Console. The Default settings will suffice. For this QuickStart the cluster name used is `owaspbasiccluster`. The `PROJECTNAME` is whatever your project is. The `REGION` is a region/zone near you.

If you want to use the gcloud sdk from a properly initialized gcloud commandline environment use the following command


```
Expand All @@ -19,11 +26,11 @@ gcloud container --project "PROJECTNAME" clusters create "owaspbasiccluster" --z
```


The command creates a similar cluster with more of the options set explicitly.

## Set up Kubectl

Using either Google Cloud Shell or other commandline gcloud SDK environment you need to set-up 'kubectl'
Using the commandline gcloud SDK environment you need to set-up 'kubectl'

If you have not already installed 'Kubectl' you can do so with the following command using `gcloud`
- `gcloud components install kubectl`
Expand Down Expand Up @@ -55,6 +62,10 @@ After a few minutes the service endpoint should be ready. You can check the stat
In the output you should see a message like "Created load..." after a "Creating load..." which means that the public facing loadbalancer (even thou there is just one container running!) is ready.


If you want to see the Kubernetes dashboard you can run `kubectl proxy` (in a new terminal window) and then navigate to http://localhost:8001/ui .



## Test Deployment

From the previous `describe service` command the `LoadBalancer Ingress:` line should have the external IP. The line below should give the port.
Expand All @@ -66,3 +77,4 @@ So.....
DONE



0 comments on commit 13a2661

Please sign in to comment.