Skip to content

Instantly share code, notes, and snippets.

@Adityanagraj
Last active September 24, 2022 14:49
Show Gist options
  • Save Adityanagraj/e0751f1b7f8907c897d78addbca5e5b6 to your computer and use it in GitHub Desktop.
Save Adityanagraj/e0751f1b7f8907c897d78addbca5e5b6 to your computer and use it in GitHub Desktop.
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