请告诉我如何将此代码中的 [VirtualService] 作为 VS,以便它既属于“Ingress”组,也属于“Application”组。 结果证明,交集和组件 [VirtualService] 可以在“Ingress”组或“Application”组中,您需要在这两个组中都有。请帮忙。
@startuml
' Remove shadows
skinparam shadowing false
skinparam BackgroundColor transparent
skinparam componentStyle rectangle
skinparam roundCorner 15
left to right direction
skinparam linetype polyline
skinparam linetype ortho
И3#transparent;line:transparent;text:transparent
rectangle "Кластер OpenShift" #MOTIVATION {
component "Точка входа" as TV #white{
[Rout] as ROUT #grey;text:white
И3->ROUT #blue
И3<..ROUT #blue
}
rectangle "OS Namespase" as OS #white {
component Application as PR #LightPink {
[VirtualService] as VS #grey;text:white
[App Service] as AS #grey;text:white
[App\nPod] as AP
}
component Ingress as IG #LightSkyBlue {
[Ingress\nService] as IS #grey;text:white
[Geteway)] as G #grey;text:white
[Ingress\nPod] as IP
[VirtualService] as VS #grey;text:white
}
component Приложение as PR #LightPink {
[VirtualService] as VS #grey;text:white
[App Service] as AS #grey;text:white
[App\nPod] as AP
}
}
}
ROUT ->IS #blue
ROUT <.. IS #blue
IS ->G #blue
IS <..G #blue
G->IP #blue
G<..IP #blue
IP->VS #blue
IP<..VS #blue
VS->AS #blue
VS<..AS #blue
AS->AP #blue
AS<..AP #blue
@enduml