Last active
September 24, 2022 14:49
-
-
Save Adityanagraj/e0751f1b7f8907c897d78addbca5e5b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from diagrams import Cluster,Diagram | |
from diagrams.gcp.network import Armor as AR | |
from diagrams.gcp.network import LoadBalancing as LB | |
from diagrams.gcp.compute import ComputeEngine as CE | |
from diagrams.gcp.database import SQL as SQL | |
from diagrams.gcp.compute import KubernetesEngine as GKE | |
from diagrams.k8s.compute import Pod as Pod | |
from diagrams.gcp.storage import Storage as GCS | |
from diagrams.gcp.network import VirtualPrivateCloud as VPC | |
with Diagram("GCP architecture",show=False): | |
with Cluster("Test VPC"): | |
svc_group = [CE("pod1"), | |
CE("pod2"), | |
CE("pod3")] | |
storage = GCS("bucket") | |
sql = SQL("database") | |
AR("armor") >> LB("Lb") >> GKE("gke") >> svc_group | |
svc_group >> storage | |
svc_group >> sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment