rings: RingTwoPrefix()

Ring 2 is the service network shared by all kubernetes clusters.

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2024-05-25 21:30:31 +00:00
parent 6142d0f7f0
commit 72a2468a10
2 changed files with 28 additions and 0 deletions
+3
View File
@@ -23,6 +23,9 @@ const (
RingZeroBits = 16
// RingOneBits indicates the size of the prefix on the ring 1 (lan) network.
RingOneBits = 20
// RingTwoBits indicates the size of the prefix on the ring 2 (services) network
// of all kubernetes clusters.
RingTwoBits = 20
// RingThreeBits indicates the size of the prefix on the ring 3 (pods) network
// of the kubernetes cluster of a region.
RingThreeBits = 12