Skip to content

Commit

Permalink
Arch diagram/readme updates (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
askmeegs authored Apr 6, 2020
1 parent c29a52f commit 013f149
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,39 @@ Bank of Anthos was developed to create an end-to-end sample demonstrating Anthos

## Installation

### 1 - Project setup
### 1 - Clone the repo

Create a GCP project or use an existing project. Then, set the Project ID variable.
Clone this repository to your local environment.

```
git clone https://github.com/GoogleCloudPlatform/bank-of-anthos.git
```

### 2 - Project setup

[Create a Google Cloud Platform project](https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project) or use an existing project. Then, set the Project ID variable.

```
PROJECT_ID=<your-project-id>
```

### 1 - Create a Kubernetes cluster
### 3 - Create a Kubernetes cluster

```
gcloud beta container clusters create bank-of-anthos \
--project=${PROJECT_ID} --zone=us-central1-b \
--machine-type=n1-standard-2 --num-nodes=4
```

### 2 - Generate RSA key pair secret
### 4 - Generate RSA key pair secret

```
openssl genrsa -out jwtRS256.key 4096
openssl rsa -in jwtRS256.key -outform PEM -pubout -out jwtRS256.key.pub
kubectl create secret generic jwt-key --from-file=./jwtRS256.key --from-file=./jwtRS256.key.pub
```

### 3 - Deploy Kubernetes manifests
### 5 - Deploy Kubernetes manifests

```
kubectl apply -f ./kubernetes-manifests
Expand Down Expand Up @@ -90,6 +98,8 @@ EXTERNAL-IP
35.223.69.29
```

**Note:** you may see a `<pending>` IP for a few minutes, while the GCP load balancer is provisioned.

### 5 - Navigate to the web frontend

Paste the frontend IP into a web browser. You should see a log-in screen:
Expand Down
Binary file modified docs/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion kubernetes-manifests/accounts-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ spec:
containers:
- name: accounts-db
image: gcr.io/bank-of-anthos/accounts-db
imagePullPolicy: "IfNotPresent"
env:
- name: LOCAL_ROUTING_NUM
value: "123456789"
Expand Down

0 comments on commit 013f149

Please sign in to comment.