Last active
May 23, 2020 09:19
-
-
Save glassonion1/7dfec3a442aa0a3ae5408bdf9c8fb633 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
node "Kubernetes Cluster" as cl { | |
rectangle "Headless Service" { | |
() "port:6379" as ps6379 | |
() "port:26379" as ps26379 | |
[redis(clusterIP: None)] as hs | |
ps6379 -- hs | |
hs -up- ps26379 | |
} | |
rectangle StatefulSet { | |
package "redos-2(IP:10.0.9.8)" <<Pod>> as r2 { | |
() "port:26379" as p226379 | |
() "port:6379" as p26379 | |
[redis(slave1)] as slave1 | |
[sentinel] as sentinel2 | |
p226379 -down- sentinel2 | |
p26379 -down- slave1 | |
} | |
package "redis-1(IP:10.0.9.7)" <<Pod>> as r1 { | |
() "port:26379" as p126379 | |
() "port:6379" as p16379 | |
[redis(slave0)] as slave0 | |
[sentinel] as sentinel1 | |
p126379 -down- sentinel1 | |
p16379 -down- slave0 | |
} | |
package "redis-0(IP:10.0.9.6)" <<Pod>> as r0 { | |
() "port:26379" as p026379 | |
() "port:6379" as p06379 | |
[redis(master)] as master | |
p026379 -down- [sentinel] | |
p06379 -down- master | |
} | |
} | |
} | |
hs -- p026379 | |
hs -- p06379 | |
hs -- p126379 | |
hs -- p16379 | |
hs -- p226379 | |
hs -- p26379 | |
@enduml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://glassonion.hatenablog.com/entry/2019/07/01/204343