No description
Find a file
Ahmet Alp Balkan 3416aee7d5 k8s/cartservice: add init container to wait redis
otherwise nullpointerexception persists

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 12:41:33 -07:00
.vscode Fixing cache implementation 2018-06-25 09:44:56 -07:00
kubernetes-manifests k8s/cartservice: add init container to wait redis 2018-07-02 12:41:33 -07:00
pb checkoutservice: remove PrepareOrder rpc 2018-06-28 00:48:46 -07:00
src frontend: proper ensureSess middleware, add req id 2018-07-02 10:13:02 -07:00
tests/cartservice Fixing AddItem and adding more tests/cartservice/CartServiceTests 2018-06-27 10:33:18 -07:00
.gitignore checkoutservice: add code stubs, TODO implement 2018-06-21 11:44:47 -07:00
README.md improve README.md 2018-07-02 11:03:55 -07:00
skaffold.yaml loadgenerator prototype 2018-06-29 16:37:01 -07:00

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. Install:

    • gcloud + sign in to your account/project.
    • kubectl (can be installed via gcloud components install kubectl)
    • Docker (on Mac/Windows, install Docker for Desktop CE)
    • Skaffold
  2. Create a Google Kubernetes Engine cluster and make sure kubectl is pointing to the cluster.

  3. Enable Google Container Registry (GCR) on your GCP project:

    gcloud services enable containerregistry.googleapis.com
    
  4. Configure docker to authenticate to GCR:

    gcloud auth configure-docker -q
    
  5. Edit skaffold.yaml, prepend your GCR registry host (gcr.io/YOUR_PROJECT/) to all imageName: fields.

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

  7. Run skaffold run. This builds the container images, pushes them to GFR, and deploys the application to Kubernetes.

  8. Find the IP address of your application:

    kubectl get service frontend-external
    

    then visit the application on your browser to confirm installation.