From 9312f10798763dd5c3f497d22725573b4669edc4 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Tue, 15 Feb 2022 16:03:33 -0800 Subject: [PATCH] Adding diagrams.py file --- dalebot-overview.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 dalebot-overview.py diff --git a/dalebot-overview.py b/dalebot-overview.py new file mode 100644 index 00000000..ef81557d --- /dev/null +++ b/dalebot-overview.py @@ -0,0 +1,31 @@ +from diagrams import Cluster, Diagram, Edge +from diagrams.onprem.gitops import Argocd +from diagrams.onprem.vcs import Gitlab +from diagrams.onprem.ci import Gitlabci +from diagrams.generic.os import LinuxGeneral +from diagrams.k8s.compute import Pod +from diagrams.onprem.container import Docker +from diagrams.onprem.compute import Server +from diagrams.k8s.compute import Pod +from diagrams.k8s.podconfig import Secret + + +with Diagram("Dalebot overview", show=False): + user = LinuxGeneral("User") + with Cluster("On-Prem Kubernetes"): + gitlab = Gitlab("Gitlab") + gitlabci = Gitlabci("Gitlab CI runner") + argocd = Argocd("ArgoCD") + secrets = Secret("API Keys") + bot = Pod("Dale-bot") + + dockerhub = Docker("Dockerhub") + storage = Server("On-prem Storage") + + user >> Edge(label="Push") >> gitlab >> gitlabci + gitlabci >> Edge(label="Application sync") >> dockerhub + dockerhub >> argocd + gitlabci >> Edge(label="Application sync") >> argocd + storage >> bot + secrets >> bot + argocd >> bot