microservices-demo/README.md
Ahmet Alp Balkan e27dcc3883 Add README.md with installation instructions
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 10:24:11 -07:00

1.1 KiB

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

  1. 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
    
  2. Edit skaffold.yaml, prepend your GCR registry host (gcr.io/YOUR_PROJECT/) to all imageName: fields.

  3. Edit the Deployment manifests at kubernetes-manifests directory and update the image names to match the changes you made in the previous step.

  4. Install Skaffold and skaffold run. This builds the container images, pushes them to GFR, and deploys the application to Kubernetes.

  5. Find the IP address of your application:

    kubectl get service frontend-external
    

    then visit the application on your browser to confirm installation.