mirror of
https://github.com/philippemerle/KubeDiagrams.git
synced 2026-08-22 14:36:24 +00:00
Add Bank of Anthos example
This commit is contained in:
@@ -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/)
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
bank-of-anthos
|
||||
@@ -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)**:
|
||||
|
||||

|
||||
|
||||
Customized architecture diagram for **[Google Cloud Platform's Bank of Anthos manifests](https://github.com/GoogleCloudPlatform/bank-of-anthos/tree/main/kubernetes-manifests)**:
|
||||
|
||||

|
||||
|
||||
Another customized architecture diagram for **[Google Cloud Platform's Bank of Anthos manifests](https://github.com/GoogleCloudPlatform/bank-of-anthos/tree/main/kubernetes-manifests)**:
|
||||
|
||||

|
||||
@@ -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"
|
||||
@@ -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 |
Executable
+15
@@ -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
|
||||
Reference in New Issue
Block a user