forked from cloud-barista/cb-ladybug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobjects.puml
135 lines (116 loc) · 1.87 KB
/
objects.puml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
@@startuml
header Cloud-Barista
title objects
skinparam object {
' backgroundColor GreenYellow
ArrowColor DarkGray
BorderColor LightGray
}
' # spider ----------------
object region #WhiteSmoke {
region
zone
}
object credential #WhiteSmoke {
}
object awsCredential #WhiteSmoke {
aws_secret_access_key
aws_access_key_id
}
object gcpCredential #WhiteSmoke {
project_id
private_key
client_email
}
object config #WhiteSmoke {
}
object vm #WhiteSmoke {
}
' }
awsCredential --|> credential
gcpCredential --|> credential
config --> credential
config --> region
' # tumblebug ----------------
object namespace #WhiteSmoke {
}
object vpc #WhiteSmoke {
cidr
subnet.name
subnet.cidr
}
object firewall #WhiteSmoke {
}
object ssh #WhiteSmoke {
}
object image #WhiteSmoke {
}
object spec #WhiteSmoke {
}
object mcis #WhiteSmoke {
}
vpc --> firewall
vm --> vpc
vm --> config
vm --> ssh
vm --> image
vm --> spec
mcis *--> vm
' # ladybug ----------------
object cluster {
+name
+namespace
+mcis
+clusterConfig
+uid
}
object kubernetesCluster {
kubernetesConfiguration
}
object kubernetesConfiguration {
+kubernetesVersion
+controlPlaneEndpoint
+apiServer
+controllerManager
+etcd
+networking
+scheduler
}
object node {
+name
+role
+public-ip
+spec
+uid
cluster-uid
}
object clusterConfig {
}
object kubeConfig {
+cluster
+user
+context
}
cluster --> namespace
cluster *-- node
cluster --> mcis
cluster --> clusterConfig
kubernetesCluster --|> cluster
kubernetesCluster --> kubernetesConfiguration
node .. vm
kubeConfig --|> clusterConfig
' # ladybug controller ----------------
object clusterDeployment #GreenYellow {
+namespace
+mcis
+controlPlaneCount
+wokrerCount
}
object nodeSet #GreenYellow {
+replicas
}
clusterDeployment --> cluster
clusterDeployment ..> mcis
nodeSet *--> node
nodeSet .. clusterDeployment
@@enduml