-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arrow from one cluster to another #261
Comments
Same here... |
Try setting an arrow from only one node within a cluster to another node in another cluster. graph_attr = {
"fontsize": "24",
"bgcolor": "transparent",
"constraint":"False",
"splines":"spline",
}
edge_attr = {
"splines":"spline",
"concentrate":"True"
}
with Diagram("\n\nKubernetes", show=False,
direction="TB", graph_attr=graph_attr, edge_attr=edge_attr, ) as diag:
with Cluster("K8 Control Node"):
etcd = Custom("etcd", "etcd.png")
api = API("Server")
sched = Sched("")
ctrl_man = CM("Control")
with Cluster("Worker Node 1"):
kub1 = Kubelet("")
KProxy("")
with Cluster(""):
pod1_1 = Custom("pod 1", "pod_w_docker.png")
pod1_2 = Custom("pod 2", "pod_w_docker.png")
kub1 - Edge(color="blue", style="dashed", penwidth="2.0") >> [pod1_1, pod1_2]
with Cluster("Worker Node 2"):
kub2 = Kubelet("")
KProxy("")
with Cluster(""):
pod2_1 = Custom("pod 1", "pod_w_docker.png")
pod2_2 = Custom("pod 2", "pod_w_docker.png")
kub2 - Edge(color="blue", style="dashed", penwidth="2.0") >> [pod2_1, pod2_2]
with Cluster("Worker Node .. n"):
KProxy("")
kub3 = Kubelet("")
with Cluster(""):
pod3_1 = Custom("pod 1", "pod_w_docker.png")
pod3_2 = Custom("pod 2", "pod_w_docker.png")
kub3 - Edge(color="blue", style="dashed", penwidth="2.0") >> [pod3_1, pod3_2]
api << Edge(color="blue", style="dashed", penwidth="2.0", minlen="1") << sched
api << Edge(color="blue", style="dashed", penwidth="2.0", minlen="1", constraint="False",) << ctrl_man
etcd << Edge(color="blue", style="dashed", penwidth="2.0", minlen="2", constraint="False",) << api
sched - Edge(penwidth="3.0", minlen="0") - ctrl_man
api << Edge(minlen="2") << [kub1, kub2, kub3]
diag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fantastic application I'm starting to learn! Something that I would really like to do is to set an arrow from one cluster to another (and not every object within the cluster). Is this possible or any way to implement?
Br,
Adam
The text was updated successfully, but these errors were encountered: