1. Ports
  2. Port 10254

What This Port Does

Port 10254 is where the NGINX Ingress Controller exposes its metrics endpoint. If your Kubernetes cluster uses NGINX to route traffic into your services, this port is how the cluster watches itself—health checks, readiness probes, and Prometheus metrics all flow here.1

The controller listens on 10254 and serves Prometheus-compatible metrics at /metrics. Monitoring systems scrape this endpoint to understand:

  • Request counts and latencies
  • Connection statistics
  • NGINX process health
  • Controller operation status

Why This Port Exists

The NGINX Ingress Controller needed a stable port for operational telemetry. Cloud-native infrastructure depends on observability—you can't fix what you can't see. Port 10254 became the convention, and once conventions start spreading through the ecosystem, they calcify. Now it's the place where thousands of Kubernetes clusters report their gateway status.

It's the kind of port that has no meaning if you're not running containers, but absolute criticality if you are.

The Port Range

Port 10254 lives in the registered port range (1024–49151)—ports that IANA assigns on request to specific services. This is distinct from:

  • Well-known ports (0–1023): Reserved for foundational Internet services like SSH (22), HTTP (80), HTTPS (443)
  • Dynamic/ephemeral ports (49152–65535): Temporary ports the operating system assigns to client applications

Registered ports are where the infrastructure you don't see lives. DNS servers, Kubernetes controllers, monitoring agents, database replication—the nervous system of data centers all run on registered ports.

Checking What's Listening

If you're running Kubernetes with NGINX Ingress, 10254 should be listening inside your cluster:

# On any node in the cluster
sudo ss -tulpn | grep 10254

# Or using lsof (requires sudo)
sudo lsof -i :10254

# From outside: port-forward to the ingress controller pod
kubectl port-forward -n ingress-nginx svc/ingress-nginx 10254:10254
# Then visit: http://localhost:10254/metrics

The port only listens inside the cluster by default. If you see it open to the public Internet, that's a misconfiguration—it exposes operational details you probably don't want exposed.

Why Unassigned Ports Matter

Ports like 10254 remind us that the Internet isn't just the services you know about. Most traffic crosses ports you've never heard of. The routing layer, the monitoring layer, the orchestration layer—they all have their own nervous systems running on registered ports.

When you search for a port number and find nothing official assigned, that doesn't mean nothing is there. It means something is probably using it, and the convention hasn't been standardized yet, or it's specific to one ecosystem—like Kubernetes.

That's how the Internet actually works: informal consensus, widespread adoption, then eventual standardization. Port 10254 is in the middle of that progression.

Trang này có hữu ích không?

😔
🤨
😃