allocs

package
v0.0.0-...-0f8ce4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package allocs contains allocations of various types of identifiers used in a node. By tracking these centrally, we can avoid collisions.

Index

Constants

View Source
const (
	UidRoot = 0
	UidTime = 100
)

These are UID/GID constants for components inside the Metropolis node code.

View Source
const (
	// LinkGroupK8sPod is set on all host side PtP interfaces going to K8s
	// pods.
	LinkGroupK8sPod uint32 = 8
	// LinkGroupOverlay is set on all interfaces which are part of the overlay
	// network and thus exempt from SNATing of workload traffic.
	LinkGroupOverlay uint32 = 9
)

Netlink link groups used for interface classification and traffic matching.

View Source
const (
	// ProtocolOverlay is used by //metropolis/node/core/network/overlay
	// when creating/removing routes pointing to the overlay interface.
	ProtocolOverlay int = 129
)

These are netlink protocol numbers used internally for various netlink resource (e.g. route) owners/manager.

Variables

View Source
var (
	// Used by //metropolis/node/kubernetes as the DNS server IP for containers.
	// Link-local IP space, 77 for ASCII M(onogon), 53 for DNS port.
	IPContainerDNS = net.IPv4(169, 254, 77, 53)
)

These are IP addresses used by various parts of Metropolis.

Functions

This section is empty.

Types

type Port

type Port uint16

Port is a TCP and/or UDP port number reserved for and used by Metropolis node code.

const (
	// PortCuratorService is the TCP port on which the Curator listens for gRPC
	// calls and services Management/AAA/Curator RPCs.
	PortCuratorService Port = 7835
	// PortConsensus is the TCP port on which etcd listens for peer traffic.
	PortConsensus Port = 7834
	// PortDebugService is the TCP port on which the debug service serves gRPC
	// traffic. This is only available in debug builds.
	PortDebugService Port = 7837
	// PortWireGuard is the UDP port on which the Wireguard Kubernetes network
	// overlay listens for incoming peer traffic.
	PortWireGuard Port = 7838
	// PortNodeManagement is the TCP port on which the node-local management service
	// serves gRPC traffic for NodeManagement.
	PortNodeManagement Port = 7839
	// PortMetrics is the TCP port on which the Metrics Service exports
	// Prometheus-compatible metrics for this node, secured using TLS and the
	// Cluster/Node certificates.
	PortMetrics Port = 7840
	// PortMetricsNodeListener is the TCP port on which the Prometheus node_exporter
	// runs, bound to 127.0.0.1. The Metrics Service proxies traffic to it from the
	// public PortMetrics.
	PortMetricsNodeListener Port = 7841
	// PortMetricsEtcdListener is the TCP port on which the etcd exporter
	// runs, bound to 127.0.0.1. The metrics service proxies traffic to it from the
	// public PortMetrics.
	PortMetricsEtcdListener Port = 7842
	// PortMetricsKubeSchedulerListener is the TCP port on which the proxy for
	// the kube-scheduler runs, bound to 127.0.0.1. The metrics service proxies
	// traffic to it from the public PortMetrics.
	PortMetricsKubeSchedulerListener Port = 7843
	// PortMetricsKubeControllerManagerListener is the TCP port on which the
	// proxy for the controller-manager runs, bound to 127.0.0.1. The metrics
	// service proxies traffic to it from the public PortMetrics.
	PortMetricsKubeControllerManagerListener Port = 7844
	// PortMetricsKubeAPIServerListener is the TCP port on which the
	// proxy for the api-server runs, bound to 127.0.0.1. The metrics
	// service proxies traffic to it from the public PortMetrics.
	PortMetricsKubeAPIServerListener Port = 7845
	// PortMetricsContainerdListener is the TCP port on which the
	// containerd metrics endpoint, bound to 127.0.0.1, is exposed.
	PortMetricsContainerdListener Port = 7846
	// PortKubernetesAPI is the TCP port on which the Kubernetes API is
	// exposed.
	PortKubernetesAPI Port = 6443
	// PortKubernetesAPIWrapped is the TCP port on which the Metropolis
	// authenticating proxy for the Kubernetes API is exposed.
	PortKubernetesAPIWrapped Port = 6444
	// PortKubernetesWorkerLocalAPI is the TCP port on which Kubernetes worker nodes
	// run a loadbalancer to access the cluster's API servers before cluster
	// networking is available. This port is only bound to 127.0.0.1.
	PortKubernetesWorkerLocalAPI Port = 6445
	// PortDebugger is the port on which the delve debugger runs (on debug
	// builds only). Not to be confused with PortDebugService.
	PortDebugger Port = 2345
)

func (Port) PortString

func (p Port) PortString() string

func (Port) String

func (p Port) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL