From e27dcc3883dcc2bc01bb5ac1936970774ab1e52a Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Mon, 2 Jul 2018 10:24:11 -0700 Subject: [PATCH] Add README.md with installation instructions Signed-off-by: Ahmet Alp Balkan --- README.md | 29 +++++++++++++++++++++++++++++ kubernetes-manifests/frontend.yaml | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e460f59..454bd84 100644 --- a/README.md +++ b/README.md @@ -1 +1,30 @@ # Microservices demo + +This project contains a 10-tier microservices application. The application is a +web-based e-commerce app called “Hipster Shop” where users can browse items, +add them to the cart, and purchase them. + +### Setup on GKE + +0. Make sure you have a Google Kubernetes Engine cluster and enabled Google + Container Registry (GCR) on your GCP project: + + gcloud services enable containerregistry.googleapis.com + +1. Edit `skaffold.yaml`, prepend your GCR registry host (`gcr.io/YOUR_PROJECT/`) + to all `imageName:` fields. + +2. Edit the Deployment manifests at `kubernetes-manifests` directory and update + the image names to match the changes you made in the previous step. + +3. Install [Skaffold] and `skaffold run`. This builds the container + images, pushes them to GFR, and deploys the application to Kubernetes. + +4. Find the IP address of your application: + + kubectl get service frontend-external + + then visit the application on your browser to confirm + installation. + +[Skaffold]: https://github.com/GoogleContainerTools/skaffold/#installation diff --git a/kubernetes-manifests/frontend.yaml b/kubernetes-manifests/frontend.yaml index a09742e..ffd0392 100644 --- a/kubernetes-manifests/frontend.yaml +++ b/kubernetes-manifests/frontend.yaml @@ -71,5 +71,5 @@ spec: selector: app: frontend ports: - - port: 8081 + - port: 80 targetPort: 8080