Skip to content

Commit 178cf35

Browse files
authored
Merge pull request #4887 from MrFreezeex/kep1645-port-rules
KEP 1645: clarify port conflict rules
2 parents 82825fa + 012e81d commit 178cf35

File tree

1 file changed

+10
-4
lines changed
  • keps/sig-multicluster/1645-multi-cluster-services-api

1 file changed

+10
-4
lines changed

keps/sig-multicluster/1645-multi-cluster-services-api/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -996,10 +996,16 @@ The conflict will be resolved by assigning precedence based on each
996996
A derived service will be accessible with the clusterset IP at the ports
997997
dictated by child services. If the external properties of service ports for a
998998
set of exported services don’t match, the clusterset service will expose the
999-
union of service ports declared on its constituent services. Should a port name
1000-
be used for multiple non-identical (`port`, `protocol`, `appProtocol`) service
1001-
ports by different constituent services, the conflict resolution policy will
1002-
determine which values are used by the derived service.
999+
union of service ports declared on its constituent services.
1000+
1001+
Like regular services, the resulting ports must respect two rules:
1002+
- Have no duplicated names (including unnamed/empty name)
1003+
- Two ports must not have the same protocol and port number
1004+
1005+
As a result, MCS-API implementations should merge ports from constituent
1006+
services first based on port name then by the protocol and port number pair.
1007+
The conflict resolution policy will determine which of the duplicated ports
1008+
are used by the ServiceImport.
10031009

10041010
#### Headlessness
10051011

0 commit comments

Comments
 (0)