Skip to content

Commit 9dc4288

Browse files
authored
Merge pull request #10025 from olemarkus/cleanup-well-known-ports
Sort wellknown ports and add missing ports to table
2 parents a310282 + e8134b7 commit 9dc4288

File tree

2 files changed

+26
-18
lines changed

2 files changed

+26
-18
lines changed

docs/development/ports.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,22 @@ See also pkg/wellknownports/wellknownports.go
1313
| 179 | Calico |
1414
| 2380 | etcd main peering |
1515
| 2381 | etcd events peering |
16-
| 3988 | dns gossip - protokube - memberlist |
16+
| 3988 | kops controller serving port |
17+
| 3989 | node local dns health check |
18+
| 3990 | Kube API health check |
19+
| 3991 | etcd-manager - cilium - grpc |
20+
| 3992 | etcd-manager - cilium - quarantined |
1721
| 3993 | dns gossip - dns-controller - memberlist |
1822
| 3994 | etcd-manager - main - quarantined |
1923
| 3995 | etcd-manager - events - quarantined |
2024
| 3996 | etcd-manager - main - grpc |
2125
| 3997 | etcd-manager - events - grpc |
2226
| 3998 | dns gossip - protokube - weave mesh |
2327
| 3999 | dns gossip - dns-controller - weave mesh |
28+
| 4000 | protokube gossip member list |
2429
| 4001 | etcd main client |
2530
| 4002 | etcd events client |
2631
| 4789 | VXLAN |
32+
| 6942 | Cilium operator prometheus port |
33+
| 9090 | Cilium prometheus port |
34+
| 9091 | Cilium hubble prometheus port |

pkg/wellknownports/wellknownports.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ limitations under the License.
1717
package wellknownports
1818

1919
const (
20+
// KopsControllerPort is the port where kops-controller listens.
21+
KopsControllerPort = 3988
22+
23+
// NodeLocalDNSHealthCheck is the port where the node-local-dns health check listens.
24+
NodeLocalDNSHealthCheck = 3989
25+
26+
// KubeAPIServerHealthCheck is the port where kube-apiserver-healthcheck listens.
27+
KubeAPIServerHealthCheck = 3990
28+
29+
EtcdCiliumGRPC = 3991
30+
EtcdCiliumQuarantinedClientPort = 3992
31+
32+
// DNSControllerGossipMemberlist is the port where dns-controller listens for the memberlist-backed gossip
33+
DNSControllerGossipMemberlist = 3993
34+
2035
// EtcdMainQuarantinedClientPort is the port used by etcd when quarantined, for the main etcd
2136
EtcdMainQuarantinedClientPort = 3994
2237

@@ -29,9 +44,6 @@ const (
2944
// EtcdEventsGRPC is the GRPC port used by etcd-manager, for the events etcd
3045
EtcdEventsGRPC = 3997
3146

32-
EtcdCiliumQuarantinedClientPort = 3992
33-
EtcdCiliumGRPC = 3991
34-
3547
// DNSControllerGossipWeaveMesh is the port where dns-controller listens for the weave-mesh backend gossip
3648
DNSControllerGossipWeaveMesh = 3998
3749

@@ -41,28 +53,16 @@ const (
4153
// ProtokubeGossipMemberlist is the port where protokube listens for the memberlist-backed gossip
4254
ProtokubeGossipMemberlist = 4000
4355

44-
// DNSControllerGossipMemberlist is the port where dns-controller listens for the memberlist-backed gossip
45-
DNSControllerGossipMemberlist = 3993
46-
47-
// KopsControllerPort is the port where kops-controller listens.
48-
KopsControllerPort = 3988
56+
// CiliumOperatorPrometheusPort is the port the Cilium Operator exposes metrics
57+
CiliumPrometheusOperatorPort = 6942
4958

5059
// 4001 is etcd main, 4002 is etcd events, 4003 is etcd cilium
5160

52-
// KubeAPIServerHealthCheck is the port where kube-apiserver-healthcheck listens.
53-
KubeAPIServerHealthCheck = 3990
54-
55-
// NodeLocalDNSHealthCheck is the port where the node-local-dns health check listens.
56-
NodeLocalDNSHealthCheck = 3989
57-
5861
// CiliumPrometheusPort is the default port where Cilium exposes metrics
5962
CiliumPrometheusPort = 9090
6063

6164
// CiliumHubblePrometheusPort is the default port where Hubble exposes metrics
6265
CiliumHubblePrometheusPort = 9091
63-
64-
// CiliumOperatorPrometheusPort is the port the Cilium Operator exposes metrics
65-
CiliumPrometheusOperatorPort = 6942
6666
)
6767

6868
type PortRange struct {

0 commit comments

Comments
 (0)