Add Bank of Anthos example

This commit is contained in:
Philippe Merle
2025-08-14 22:10:53 +03:00
parent 846ed30c5f
commit fe8ea4e472
10 changed files with 102 additions and 0 deletions
+1
View File
@@ -61,6 +61,7 @@ Many other architecture diagrams are available into [examples/](https://github.c
### Business Applications
1. [Bank of Anthos](https://github.com/philippemerle/KubeDiagrams/blob/main/examples/bank-of-anthos/)
1. [DeathStarBench](https://github.com/philippemerle/KubeDiagrams/blob/main/examples/deathstarbench/)
1. [Official Kubernetes WordPress tutorial](https://github.com/philippemerle/KubeDiagrams/blob/main/examples/wordpress/)
1. [Official Kubernetes ZooKeeper tutorial](https://github.com/philippemerle/KubeDiagrams/blob/main/examples/zookeeper/)
+1
View File
@@ -0,0 +1 @@
bank-of-anthos
+25
View File
@@ -0,0 +1,25 @@
# Bank of Anthos Example
This example is dedicated to **[Google Cloud Platform's Bank of Anthos](https://github.com/GoogleCloudPlatform/bank-of-anthos/)**.
## Instructions
Generate the Kubernetes architecture diagrams:
```sh
./generate.sh
```
## Generated architecture diagrams
Architecture diagram for **[Google Cloud Platform's Bank of Anthos manifests](https://github.com/GoogleCloudPlatform/bank-of-anthos/tree/main/kubernetes-manifests)**:
![diagrams/bank-of-anthos.png](diagrams/bank-of-anthos.png)
Customized architecture diagram for **[Google Cloud Platform's Bank of Anthos manifests](https://github.com/GoogleCloudPlatform/bank-of-anthos/tree/main/kubernetes-manifests)**:
![diagrams/custom-diagram-1.png](diagrams/custom-diagram-1.png)
Another customized architecture diagram for **[Google Cloud Platform's Bank of Anthos manifests](https://github.com/GoogleCloudPlatform/bank-of-anthos/tree/main/kubernetes-manifests)**:
![diagrams/custom-diagram-2.png](diagrams/custom-diagram-2.png)
@@ -0,0 +1,3 @@
clusters:
- label: app
show: false
@@ -0,0 +1,13 @@
clusters:
- label: app
show: false
- label: tier
show: false
- label: application
title: "Application: {}"
graph_attr:
bgcolor: "#ECE8F6"
- label: team
title: "Team: {}"
graph_attr:
bgcolor: "#EBF3E7"
+44
View File
@@ -0,0 +1,44 @@
edges:
REFERENCE:
color: gray
diagram:
edges:
- from: loadgenerator/default/Deployment/apps/v1
to: frontend/default/Service/v1
color: brown
- from: frontend/default/Deployment/apps/v1
to: userservice/default/Service/v1
color: brown
- from: frontend/default/Deployment/apps/v1
to: contacts/default/Service/v1
color: brown
- from: frontend/default/Deployment/apps/v1
to: ledgerwriter/default/Service/v1
color: brown
- from: frontend/default/Deployment/apps/v1
to: ledgerwriter/default/Service/v1
color: brown
- from: frontend/default/Deployment/apps/v1
to: balancereader/default/Service/v1
color: brown
- from: frontend/default/Deployment/apps/v1
to: transactionhistory/default/Service/v1
color: brown
- from: userservice/default/Deployment/apps/v1
to: accounts-db/default/Service/v1
color: brown
- from: contacts/default/Deployment/apps/v1
to: accounts-db/default/Service/v1
color: brown
- from: ledgerwriter/default/Deployment/apps/v1
to: ledger-db/default/Service/v1
color: brown
- from: ledgerwriter/default/Deployment/apps/v1
to: balancereader/default/Service/v1
color: brown
- from: balancereader/default/Deployment/apps/v1
to: ledger-db/default/Service/v1
color: brown
- from: transactionhistory/default/Deployment/apps/v1
to: ledger-db/default/Service/v1
color: brown
Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 KiB

+15
View File
@@ -0,0 +1,15 @@
#! /bin/sh
PATH=../../bin:$PATH
# Clone the Bank of Anthos GitHub repository
git clone https://github.com/GoogleCloudPlatform/bank-of-anthos.git
# Generate the architecture diagram for Bank of Anthos manifests
kube-diagrams bank-of-anthos/kubernetes-manifests/* bank-of-anthos/extras/jwt/jwt-secret.yaml -o diagrams/bank-of-anthos.png
# Generate a custom diagram for Bank of Anthos manifests
kube-diagrams bank-of-anthos/kubernetes-manifests/* bank-of-anthos/extras/jwt/jwt-secret.yaml -c custom-diagram-1.kdc -c custom-edges.kdc -o diagrams/custom-diagram-1.png
# Generate another custom diagram for Bank of Anthos manifests
kube-diagrams bank-of-anthos/kubernetes-manifests/* bank-of-anthos/extras/jwt/jwt-secret.yaml -c custom-diagram-2.kdc -c custom-edges.kdc -o diagrams/custom-diagram-2.png