-
Notifications
You must be signed in to change notification settings - Fork 49
/
default.dot
63 lines (63 loc) · 3.1 KB
/
default.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* This dot file is generated by using k8sviz.sh for namespace default.
*/
digraph G {
rankdir=TD;
subgraph cluster_default {
label=<<TABLE BORDER="0"><TR><TD><IMG SRC="./icons/ns-128.png" /></TD></TR><TR><TD>default</TD></TR></TABLE>>;
labeljust="l";
graph[style=dotted];
{
rank=same;
0 [style=invis, height=0, width=0, margin=0];
// deploy in namespace default.
// job in namespace default.
}
{
rank=same;
1 [style=invis, height=0, width=0, margin=0];
// sts in namespace default.
sts_cassandra [label=<<TABLE BORDER="0"><TR><TD><IMG SRC="./icons/sts-128.png" /></TD></TR><TR><TD>cassandra</TD></TR></TABLE>>, penwidth=0]
// ds in namespace default.
// rs in namespace default.
}
{
rank=same;
2 [style=invis, height=0, width=0, margin=0];
// pod in namespace default.
pod_cassandra_0 [label=<<TABLE BORDER="0"><TR><TD><IMG SRC="./icons/pod-128.png" /></TD></TR><TR><TD>cassandra-0</TD></TR></TABLE>>, penwidth=0]
pod_cassandra_1 [label=<<TABLE BORDER="0"><TR><TD><IMG SRC="./icons/pod-128.png" /></TD></TR><TR><TD>cassandra-1</TD></TR></TABLE>>, penwidth=0]
pod_cassandra_2 [label=<<TABLE BORDER="0"><TR><TD><IMG SRC="./icons/pod-128.png" /></TD></TR><TR><TD>cassandra-2</TD></TR></TABLE>>, penwidth=0]
}
{
rank=same;
3 [style=invis, height=0, width=0, margin=0];
// pvc in namespace default.
pvc_cassandra_data_cassandra_0 [label=<<TABLE BORDER="0"><TR><TD><IMG SRC="./icons/pvc-128.png" /></TD></TR><TR><TD>cassandra-data-cassandra-0</TD></TR></TABLE>>, penwidth=0]
pvc_cassandra_data_cassandra_1 [label=<<TABLE BORDER="0"><TR><TD><IMG SRC="./icons/pvc-128.png" /></TD></TR><TR><TD>cassandra-data-cassandra-1</TD></TR></TABLE>>, penwidth=0]
pvc_cassandra_data_cassandra_2 [label=<<TABLE BORDER="0"><TR><TD><IMG SRC="./icons/pvc-128.png" /></TD></TR><TR><TD>cassandra-data-cassandra-2</TD></TR></TABLE>>, penwidth=0]
}
{
rank=same;
4 [style=invis, height=0, width=0, margin=0];
// svc in namespace default.
svc_cassandra [label=<<TABLE BORDER="0"><TR><TD><IMG SRC="./icons/svc-128.png" /></TD></TR><TR><TD>cassandra</TD></TR></TABLE>>, penwidth=0]
svc_kubernetes [label=<<TABLE BORDER="0"><TR><TD><IMG SRC="./icons/svc-128.png" /></TD></TR><TR><TD>kubernetes</TD></TR></TABLE>>, penwidth=0]
}
// dummy edge to order ranks correctly.
0 -> 1 -> 2 -> 3 -> 4 [style=invis];
// Edges between pod and its managed resource
sts_cassandra -> pod_cassandra_0 [style=dashed];
sts_cassandra -> pod_cassandra_1 [style=dashed];
sts_cassandra -> pod_cassandra_2 [style=dashed];
// Edges between rs and its managed resource
// Edges between PVC and pod
pod_cassandra_0 -> pvc_cassandra_data_cassandra_0 [dir=none];
pod_cassandra_1 -> pvc_cassandra_data_cassandra_1 [dir=none];
pod_cassandra_2 -> pvc_cassandra_data_cassandra_2 [dir=none];
// Edges between svc and pod
pod_cassandra_0 -> svc_cassandra [dir=back];
pod_cassandra_1 -> svc_cassandra [dir=back];
pod_cassandra_2 -> svc_cassandra [dir=back];
}
}