From 08f70dabe65267f0b65cce3edb439c2b4ecf7d92 Mon Sep 17 00:00:00 2001 From: Ole Markus With Date: Thu, 8 Oct 2020 07:41:05 +0200 Subject: [PATCH] Sort wellknown ports and add missing ports to table --- docs/development/ports.md | 10 +++++++- pkg/wellknownports/wellknownports.go | 34 ++++++++++++++-------------- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/docs/development/ports.md b/docs/development/ports.md index c858a36c80a4b..75de719d24c79 100644 --- a/docs/development/ports.md +++ b/docs/development/ports.md @@ -13,7 +13,11 @@ See also pkg/wellknownports/wellknownports.go | 179 | Calico | | 2380 | etcd main peering | | 2381 | etcd events peering | -| 3988 | dns gossip - protokube - memberlist | +| 3988 | kops controlelr serving port | +| 3989 | node local dns health check | +| 3990 | Kube API health check | +| 3991 | etcd-manager - cilium - grpc | +| 3992 | etcd-manager - cilium - quarantined | | 3993 | dns gossip - dns-controller - memberlist | | 3994 | etcd-manager - main - quarantined | | 3995 | etcd-manager - events - quarantined | @@ -21,6 +25,10 @@ See also pkg/wellknownports/wellknownports.go | 3997 | etcd-manager - events - grpc | | 3998 | dns gossip - protokube - weave mesh | | 3999 | dns gossip - dns-controller - weave mesh | +| 4000 | protokube gossip member list | | 4001 | etcd main client | | 4002 | etcd events client | | 4789 | VXLAN | +| 6942 | Cilium operator prometheus port | +| 9090 | Cilium prometheus port | +| 9091 | Cilium hubble prometheus port | diff --git a/pkg/wellknownports/wellknownports.go b/pkg/wellknownports/wellknownports.go index 0262a681e5705..5f2afe1858a21 100644 --- a/pkg/wellknownports/wellknownports.go +++ b/pkg/wellknownports/wellknownports.go @@ -17,6 +17,21 @@ limitations under the License. package wellknownports const ( + // KopsControllerPort is the port where kops-controller listens. + KopsControllerPort = 3988 + + // NodeLocalDNSHealthCheck is the port where the node-local-dns health check listens. + NodeLocalDNSHealthCheck = 3989 + + // KubeAPIServerHealthCheck is the port where kube-apiserver-healthcheck listens. + KubeAPIServerHealthCheck = 3990 + + EtcdCiliumGRPC = 3991 + EtcdCiliumQuarantinedClientPort = 3992 + + // DNSControllerGossipMemberlist is the port where dns-controller listens for the memberlist-backed gossip + DNSControllerGossipMemberlist = 3993 + // EtcdMainQuarantinedClientPort is the port used by etcd when quarantined, for the main etcd EtcdMainQuarantinedClientPort = 3994 @@ -29,9 +44,6 @@ const ( // EtcdEventsGRPC is the GRPC port used by etcd-manager, for the events etcd EtcdEventsGRPC = 3997 - EtcdCiliumQuarantinedClientPort = 3992 - EtcdCiliumGRPC = 3991 - // DNSControllerGossipWeaveMesh is the port where dns-controller listens for the weave-mesh backend gossip DNSControllerGossipWeaveMesh = 3998 @@ -41,28 +53,16 @@ const ( // ProtokubeGossipMemberlist is the port where protokube listens for the memberlist-backed gossip ProtokubeGossipMemberlist = 4000 - // DNSControllerGossipMemberlist is the port where dns-controller listens for the memberlist-backed gossip - DNSControllerGossipMemberlist = 3993 - - // KopsControllerPort is the port where kops-controller listens. - KopsControllerPort = 3988 + // CiliumOperatorPrometheusPort is the port the Cilium Operator exposes metrics + CiliumPrometheusOperatorPort = 6942 // 4001 is etcd main, 4002 is etcd events, 4003 is etcd cilium - // KubeAPIServerHealthCheck is the port where kube-apiserver-healthcheck listens. - KubeAPIServerHealthCheck = 3990 - - // NodeLocalDNSHealthCheck is the port where the node-local-dns health check listens. - NodeLocalDNSHealthCheck = 3989 - // CiliumPrometheusPort is the default port where Cilium exposes metrics CiliumPrometheusPort = 9090 // CiliumHubblePrometheusPort is the default port where Hubble exposes metrics CiliumHubblePrometheusPort = 9091 - - // CiliumOperatorPrometheusPort is the port the Cilium Operator exposes metrics - CiliumPrometheusOperatorPort = 6942 ) type PortRange struct {