Skip to content

Commit

Permalink
Sort wellknown ports and add missing ports to table
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Markus With committed Oct 8, 2020
1 parent a310282 commit e8134b7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
10 changes: 9 additions & 1 deletion docs/development/ports.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,22 @@ See also pkg/wellknownports/wellknownports.go
| 179 | Calico |
| 2380 | etcd main peering |
| 2381 | etcd events peering |
| 3988 | dns gossip - protokube - memberlist |
| 3988 | kops controller 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 |
| 3996 | etcd-manager - main - grpc |
| 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 |
34 changes: 17 additions & 17 deletions pkg/wellknownports/wellknownports.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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 {
Expand Down

0 comments on commit e8134b7

Please sign in to comment.